Re: New to Jenkins - need some help

2013-08-17 Thread Baptiste Mathus
Hi, (- good intro to ask for help ;) )

Le 17 août 2013 00:41, boy8b...@gmail.com a écrit :

 First of all I'm a student and very noobish with linux and jenkins. I'm
also tired of searching the web (it makes me crazy sometimes :) )

 I need to do the following on a linux virtual machine (Cent OS 6.4
Minimal)

 We expect the following components installed:
 • Java compiler (OpenJDK 1.7.0) (done)
 • Version Management (Git or Mercurial) that can be used remotely (done
using Mercurial)
 • Maven to compile (done)
 • Jenkins to manage automated tests (done)

 At given intervals (eg daily at midnight) the latest revision in the

First, you should know (and tell tour teacher ;)) that running a build at
given intervals is generally a bad idea. Today you would far better just
poll the SCM (which you have in place of mercurial) to see if there were
changes in the sources and then trigger a build.

 version control system (tip, HEAD, ...) will be compiled with Maven. In
addition, Java Docs will be created and packages (jar, war, ...). Then
Jenkins will do all tests and conduct reports.

 Which Job will I need to choose (Free-Style/Maven2/3,...)? I would go for
a maven2/3 project but I'm not sure what the differences are...

Both are quite equivalent for what you want and there's currently a debate
even here about which to use. Some would encourage you to a maven step in a
freestyle build, some would advice using a maven native job.

In what you describe above, there's an important amount of things that will
actually be done by maven and not jenkins.


 Will Jenkins see automatically what the latest revision is in Mercurial
(my chosen version control system)?

Choose the SCM trigger instead of the periodic one.


 Which plugin will I need to execute the tests and report them? I think
mvn test command is to execute the tests but where can I conduct reports?

For those questions, this is not the right mailing list. Send a dedicated
thread to maven users mailing list.

 Make sure there is a report of previous builds.

 Is this my second job? Do i run this after job 1?

 What are the reports of the previous builds? How can Jenkins give them to
me?

 Ensure that the Java Docs and packages can be downloaded (jars, wars,
...) of the latest build easy

Maven question, see above.


 Will Mercurial Hgweb give me the choice to publish the javadoc somehow or
will I need to make an own server where I manually publish the javadocs and
packages? Or can Jenkins somehow make my life easier?

Generally, yes. Jenkins is designed to make developer life easier. If you
refine your issues, we'll certainly be able to help you.

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Jenkins - need some help

2013-08-17 Thread Chris Marks
Hi boy8bitx,

It sounds like it is part of your assignment to figure these items out, so
I will not answer your questions directly.  However, what I will say is
that most of these questions can be answered by playing with your Jenkins
installation and understanding Maven a bit better.
Jobs are cheap, so if you're not sure what the difference between a
freestyle job and a Maven 2/3 job, set up a job of each type and run builds
for each.  Read the inline help for each item in the configuration page.
 Make sure you run at least a couple builds under each job type.
For Maven functions related to your questions, you should probably make
sure you read and understand
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html.
 Try a few of the lifecycle commands to make sure you know what they do,
then try them in Jenkins to see if Jenkins can help you.

Hope this helps and good luck.  It's good to hear your teacher is exposing
you to these kinds of tools and technologies, it took me a while after
school to discover these and get them in place.

topher


On Fri, Aug 16, 2013 at 4:41 PM, boy8b...@gmail.com wrote:

 First of all I'm a student and very noobish with linux and jenkins. I'm
 also tired of searching the web (it makes me crazy sometimes :) )

 I need to do the following on a linux virtual machine (Cent OS 6.4 Minimal)

 We expect the following components installed:
 • Java compiler (OpenJDK 1.7.0) (done)
 • Version Management (Git or Mercurial) that can be used remotely (done
 using Mercurial)
 • Maven to compile (done)
 • Jenkins to manage automated tests (done)


- At given intervals (eg daily at midnight) the latest revision in the 
 version
control system (tip, HEAD, ...) will be compiled with Maven. In
addition, Java Docs will be created and packages (jar, war, ...). Then
Jenkins will do all tests and conduct reports.

 Which Job will I need to choose (Free-Style/Maven2/3,...)? I would go for
 a maven2/3 project but I'm not sure what the differences are...

 Will Jenkins see automatically what the latest revision is in Mercurial
 (my chosen version control system)?

 Which plugin will I need to execute the tests and report them? I think mvn
 test command is to execute the tests but where can I conduct reports?

- Make sure there is a report of previous builds.

 Is this my second job? Do i run this after job 1?

 What are the reports of the previous builds? How can Jenkins give them to
 me?

- Ensure that the Java Docs and packages can be downloaded (jars, wars,
...) of the latest build easy

 Will Mercurial Hgweb give me the choice to publish the javadoc somehow or
 will I need to make an own server where I manually publish the javadocs and
 packages? Or can Jenkins somehow make my life easier?

  --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Jenkins - need some help

2013-08-16 Thread Scott Tatum
Hey, I just have to say, your teacher gives great assignments! :-D

-Scott
On Aug 16, 2013 5:41 PM, boy8b...@gmail.com wrote:

 First of all I'm a student and very noobish with linux and jenkins. I'm
 also tired of searching the web (it makes me crazy sometimes :) )

 I need to do the following on a linux virtual machine (Cent OS 6.4 Minimal)

 We expect the following components installed:
 • Java compiler (OpenJDK 1.7.0) (done)
 • Version Management (Git or Mercurial) that can be used remotely (done
 using Mercurial)
 • Maven to compile (done)
 • Jenkins to manage automated tests (done)


- At given intervals (eg daily at midnight) the latest revision in the 
 version
control system (tip, HEAD, ...) will be compiled with Maven. In
addition, Java Docs will be created and packages (jar, war, ...). Then
Jenkins will do all tests and conduct reports.

 Which Job will I need to choose (Free-Style/Maven2/3,...)? I would go for
 a maven2/3 project but I'm not sure what the differences are...

 Will Jenkins see automatically what the latest revision is in Mercurial
 (my chosen version control system)?

 Which plugin will I need to execute the tests and report them? I think mvn
 test command is to execute the tests but where can I conduct reports?

- Make sure there is a report of previous builds.

 Is this my second job? Do i run this after job 1?

 What are the reports of the previous builds? How can Jenkins give them to
 me?

- Ensure that the Java Docs and packages can be downloaded (jars, wars,
...) of the latest build easy

 Will Mercurial Hgweb give me the choice to publish the javadoc somehow or
 will I need to make an own server where I manually publish the javadocs and
 packages? Or can Jenkins somehow make my life easier?

  --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: New to Jenkins: Can you connect to a remote non-github repository?

2013-08-01 Thread Laura McCord
Hi Slide,

The vpn was removed recently and I assigned permissions to allow the server 
to access the repository and it finally worked.

Thanks for your help,
 Laura 

On Wednesday, July 10, 2013 4:09:28 PM UTC-5, slide wrote:

 Hi,

 You probably need to add the key to whatever user Jenkins is running as. 
 Can you run the same command from the command line as that user and have it 
 work?

 Thanks,

 Slide
 On Jul 10, 2013 1:59 PM, Laura McCord lauramc...@gmail.comjavascript: 
 wrote:

 Hi,

 The issue that I am facing is the following error:

 *Failed to connect to repository : Command /usr/bin/git ls-remote -h 
 g...@my.repo.com:myproject.git HEAD returned status code 128:*

 *stdout: *

 *stderr: ERROR:…..serve.main:Repository read access denied*

 *fatal: The remote end hung up unexpectedly*

 *
 *

 Normally, when I go through the process of maintaining my git project 
 from a terminal I have to add my private key and I need to be VPN'd in 
 order to push/pull to the central repository. So I don't really know how to 
 configure this to work.

 Thanks,
  Laura

 On Wednesday, July 10, 2013 3:39:13 PM UTC-5, slide wrote:

 Hi Laura,

 All you should need to know is the repo URL and put that information 
 into the Git plugin configuration. Is there something specific you are 
 trying to do that you need help with? Do you have a screenshot of what you 
 are seeing that is causing you issues?

 Thanks,

 slide


 On Wed, Jul 10, 2013 at 1:33 PM, Laura McCord lauramc...@gmail.comwrote:

 Hi,

 I'm trying to setup a remote git repository with Jenkins and most of 
 the examples I stumble upon are using github. I'm assuming it's possible 
 to 
 use Jenkins with a non-github remote repo but I can't find what I'm 
 looking 
 for.  Can someone point me to the right direction please?

 Thanks,
  Laura

 -- 
 You received this message because you are subscribed to the Google 
 Groups Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to jenkinsci-use...@**googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  




 -- 
 Website: http://earl-of-code.**com http://earl-of-code.com 

  -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  



-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: New to Jenkins: Can you connect to a remote non-github repository?

2013-07-10 Thread Slide
Hi Laura,

All you should need to know is the repo URL and put that information into
the Git plugin configuration. Is there something specific you are trying to
do that you need help with? Do you have a screenshot of what you are seeing
that is causing you issues?

Thanks,

slide


On Wed, Jul 10, 2013 at 1:33 PM, Laura McCord lauramccord...@gmail.comwrote:

 Hi,

 I'm trying to setup a remote git repository with Jenkins and most of the
 examples I stumble upon are using github. I'm assuming it's possible to use
 Jenkins with a non-github remote repo but I can't find what I'm looking
 for.  Can someone point me to the right direction please?

 Thanks,
  Laura

 --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Website: http://earl-of-code.com

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: New to Jenkins: Can you connect to a remote non-github repository?

2013-07-10 Thread Laura McCord
Hi,

The issue that I am facing is the following error:

*Failed to connect to repository : Command /usr/bin/git ls-remote -h 
g...@my.repo.com:myproject.git HEAD returned status code 128:*

*stdout: *

*stderr: ERROR:…..serve.main:Repository read access denied*

*fatal: The remote end hung up unexpectedly*

*
*

Normally, when I go through the process of maintaining my git project from 
a terminal I have to add my private key and I need to be VPN'd in order to 
push/pull to the central repository. So I don't really know how to 
configure this to work.

Thanks,
 Laura

On Wednesday, July 10, 2013 3:39:13 PM UTC-5, slide wrote:

 Hi Laura,

 All you should need to know is the repo URL and put that information into 
 the Git plugin configuration. Is there something specific you are trying to 
 do that you need help with? Do you have a screenshot of what you are seeing 
 that is causing you issues?

 Thanks,

 slide


 On Wed, Jul 10, 2013 at 1:33 PM, Laura McCord 
 lauramc...@gmail.comjavascript:
  wrote:

 Hi,

 I'm trying to setup a remote git repository with Jenkins and most of the 
 examples I stumble upon are using github. I'm assuming it's possible to use 
 Jenkins with a non-github remote repo but I can't find what I'm looking 
 for.  Can someone point me to the right direction please?

 Thanks,
  Laura

 -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-use...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Website: http://earl-of-code.com 


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: New to Jenkins: Can you connect to a remote non-github repository?

2013-07-10 Thread Slide
Hi,

You probably need to add the key to whatever user Jenkins is running as.
Can you run the same command from the command line as that user and have it
work?

Thanks,

Slide
On Jul 10, 2013 1:59 PM, Laura McCord lauramccord...@gmail.com wrote:

 Hi,

 The issue that I am facing is the following error:

 *Failed to connect to repository : Command /usr/bin/git ls-remote -h
 g...@my.repo.com:myproject.git HEAD returned status code 128:*

 *stdout: *

 *stderr: ERROR:…..serve.main:Repository read access denied*

 *fatal: The remote end hung up unexpectedly*

 *
 *

 Normally, when I go through the process of maintaining my git project from
 a terminal I have to add my private key and I need to be VPN'd in order to
 push/pull to the central repository. So I don't really know how to
 configure this to work.

 Thanks,
  Laura

 On Wednesday, July 10, 2013 3:39:13 PM UTC-5, slide wrote:

 Hi Laura,

 All you should need to know is the repo URL and put that information into
 the Git plugin configuration. Is there something specific you are trying to
 do that you need help with? Do you have a screenshot of what you are seeing
 that is causing you issues?

 Thanks,

 slide


 On Wed, Jul 10, 2013 at 1:33 PM, Laura McCord lauramc...@gmail.comwrote:

 Hi,

 I'm trying to setup a remote git repository with Jenkins and most of the
 examples I stumble upon are using github. I'm assuming it's possible to use
 Jenkins with a non-github remote repo but I can't find what I'm looking
 for.  Can someone point me to the right direction please?

 Thanks,
  Laura

 --
 You received this message because you are subscribed to the Google
 Groups Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to jenkinsci-use...@**googlegroups.com.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .






 --
 Website: http://earl-of-code.**com http://earl-of-code.com

  --
 You received this message because you are subscribed to the Google Groups
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: New to Jenkins, have 7 days to become an expert - wish me luck

2012-12-07 Thread Mister Guru
It was surprising easy to get Jenkins up and running - The bad memories
from the Hudson days had been freaking me out.But I do apprecaite all the
hands of help that came my way the reponse to this message was most
welcoming.

Well, diffrent communities welcome newbies in diffrent ways, and I suppose
the frost and ice in here is nothing diffrent from other technical
communities.

Anyway - Thanks ... to the devs who made Jenkins - I can see it being a
massive time saver.


Re: New to Jenkins, have 7 days to become an expert - wish me luck

2012-12-07 Thread Jan Seidel
Hello and welcome!

Become a pro in 7 days is hell of demand :)
I am working on a massive scale with Hudson/Jenkins for 2 years now and am 
still developing my skills as useful plugins emerge where I created some 
nasty scripting to find my way around.
My environment is about to reach the final level and I have started to 
review and improve much stuff as I do realize that much stuff is doing well 
but still it can be done better and with more functionality.
But Jenkins is absolutely great when starting from scratch as you - as you 
already realized - can start in big paces. And the community here is really 
a great help when get stuck.

So good luck mate and don't hesitate to ask ;)

Jan

Am Dienstag, 4. Dezember 2012 03:55:17 UTC+1 schrieb Mister Guru:

 Good Evening Jenkins users,

 I have been trying to get my head around jenkins, and so far to sum up in 
 a sentence, ¨It helps to do repetitive stuff like builds and updating code 
 on websites¨

 I'm hoping that the later is possible, because Ive just witnessed someone 
 do the thing by hand, and my first thought was - hell no! I'm learning 
 jenkins!

 A quick read over the home page showed various plugins - rundeck, gitlab, 
 both of which we use, so I'm really hoping that I can glue this lot 
 together, so that when a dev pushes his work to the repo, 
 five minutes later, the new website is displaying all his mistakes in HD on 
 a nice test URL. I have a feeling that jenkins can help me here - im all 
 ears at the moment, i will really appreciate some advice.

 Right now, im spinning up a VM to practice getting my jenkins install 
 going - and hopefully, i should be able to start to automate most of my day.

 Thanks




Re: New to Jenkins - need help

2012-12-07 Thread Josselin Pierre
In this case, you can configure the Product jobs to trigger the Library
jobs, using Trigger/call on other projects build step.
And in the Library jobs, uses the path ignore plugin :
https://wiki.jenkins-ci.org/display/JENKINS/Pathignore+Plugin

By using the
Do not build if only specified paths have changed
and the Invert Ignore option,
you should be able to configure a condition such as build only if these
paths has changed

I never actually tried such a configurable, but it seems doable.



2012/12/7 Ivan Kharin k13.priv...@gmail.com


 One possible configuration is : one Jenkins jobs for each library, one
 Jenkins jobs for each product.
 Then, for each library :
 - Poll SCM to check if changes happened
 - Build the library
 - Trigger the builds of the product that relie on this library.

 For each product :
 - Retrieve the libraries artifacts from the libraries jobs
 - Compile the product
 You can configure the products to prevent a job to run while a library it
 depends upon is building (advanced project option - do not build when
 upstream project is building)


 Sorry, but this solution does not suit me.
 Assembling one product can take about an hour.
 Last duration for some libraries: 9 min, 14 min, 26 min, 33 min

 I want to run the assembly of the product on demand - and with all the
 necessary libraries must be updated.

 But I can not afford to build all libraries prior to building of the
 product.
 And I can not afford the rebuilding of products at each change in
 libraries.



Re: New to Jenkins - need help

2012-12-07 Thread Jan Seidel
Well, there is a plugin available that lets you define which changes may 
trigger and which not. That way should you always have a recent set of 
libraries available when starting a bulld.
You can also use the join plugin if certain libraries must be built before 
the assembly build is spawned or you have a build matrix.

There are many approaches to achieve your goal but I think you would have 
to elaborate a bit more which requirements and dependencies you have in 
order to run an assembly build

Take care
Jan


Am Freitag, 7. Dezember 2012 06:36:08 UTC+1 schrieb Ivan Kharin:

 I'm new to Jenkins.
 I have 20 libraries as separate jobs.
 And 15 products, each of which depends on a subset of these libraries.
 I can not understand how I obtain needed result:
 Before building the product, automatically start building only those 
 libraries that have been changed.
 Is it possible to specify a condition for the Build Step repository 
 changed?

 ---
 Regards,
 Ivan Kharin



Re: New to Jenkins - need help

2012-12-07 Thread Les Mikesell
On Fri, Dec 7, 2012 at 1:46 AM, Ivan Kharin k13.priv...@gmail.com wrote:

 Sorry, but this solution does not suit me.
 Assembling one product can take about an hour.
 Last duration for some libraries: 9 min, 14 min, 26 min, 33 min

 I want to run the assembly of the product on demand - and with all the
 necessary libraries must be updated.

 But I can not afford to build all libraries prior to building of the
 product.
 And I can not afford the rebuilding of products at each change in libraries.

We build and test the libraries separately and check the binaries into
tags in a subversion repository.   Then the projects that use them
have svn externals to pull in all the components they want - either
source or binary.  The externals have to be manually changed to move
to newer library releases but that is normally what we want.  It would
be pretty rare for someone here to want to build trunk versions of all
the components and have a lot of untested code to debug together - but
that can be done if needed.

-- 
   Les Mikesell
 lesmikes...@gmail.com


Re: New to Jenkins - need help

2012-12-06 Thread Josselin Pierre
Hi,

Usually, it's done the other way round.
One possible configuration is : one Jenkins jobs for each library, one
Jenkins jobs for each product.
Then, for each library :
- Poll SCM to check if changes happened
- Build the library
- Trigger the builds of the product that relie on this library.

For each product :
- Retrieve the libraries artifacts from the libraries jobs
- Compile the product
You can configure the products to prevent a job to run while a library it
depends upon is building (advanced project option - do not build when
upstream project is building)



2012/12/7 Bharathi Ramalingam ramalingam.bhara...@gmail.com


 You should take a look at SCM poll and build trigger when scm changes.

 On Friday, December 7, 2012 11:06:08 AM UTC+5:30, Ivan Kharin wrote:

 I'm new to Jenkins.
 I have 20 libraries as separate jobs.
 And 15 products, each of which depends on a subset of these libraries.
 I can not understand how I obtain needed result:
 Before building the product, automatically start building only those
 libraries that have been changed.
 Is it possible to specify a condition for the Build Step repository
 changed?

 ---
 Regards,
 Ivan Kharin




Re: New to Jenkins - need help

2012-12-06 Thread Ivan Kharin



 One possible configuration is : one Jenkins jobs for each library, one 
 Jenkins jobs for each product.
 Then, for each library :
 - Poll SCM to check if changes happened
 - Build the library
 - Trigger the builds of the product that relie on this library.

 For each product :
 - Retrieve the libraries artifacts from the libraries jobs
 - Compile the product
 You can configure the products to prevent a job to run while a library it 
 depends upon is building (advanced project option - do not build when 
 upstream project is building)

 
Sorry, but this solution does not suit me.
Assembling one product can take about an hour.
Last duration for some libraries: 9 min, 14 min, 26 min, 33 min

I want to run the assembly of the product on demand - and with all the 
necessary libraries must be updated.

But I can not afford to build all libraries prior to building of the 
product.
And I can not afford the rebuilding of products at each change in libraries.


RE: New to jenkins

2012-10-11 Thread Jim McCaskey
There’s some good documentation on this on the Sonar website:

http://docs.codehaus.org/display/SONAR/Hudson+and+Jenkins+Plugin

-Jim

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of hamoodh parameswaran
Sent: Thursday, October 11, 2012 9:43 PM
To: jenkinsci-users@googlegroups.com
Subject: New to jenkins

Hi All,

I'm new to jenkins and sonar.
So can anyone help me regarding sonar and jenkins integration.

1.How ro integrate sonar and jenkins.

Regards,
Hamoodh
NOTICE: All information in and attached to this email may be proprietary, 
confidential, privileged and otherwise protected from improper or erroneous 
disclosure. If you are not the sender's intended recipient, you are not 
authorized to intercept, read, print, retain, copy, forward, or disseminate 
this message.