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.

Reply via email to