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,  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-17 Thread Baptiste Mathus
Hi, (<- good intro to ask for help ;) )

Le 17 août 2013 00:41,  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-16 Thread Scott Tatum
Hey, I just have to say, your teacher gives great assignments! :-D

-Scott
On Aug 16, 2013 5:41 PM,  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.