Done with permissions now let's build our first Job which will automate the built of a Maven project.

We will test the build process against the quickstart archetype, which can be installed in a matter of minutes by typing in a terminal window:

mvn archetype:generate -DgroupId=com.sample -DartifactId=webapp -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

This archetype contains just a Java class and a Junit test case. Just add some logging in the if you want to trace the single steps of your test case. Next, from the left menu select "New Item", enter a Name for it and select "Maven Project":

jenkins newproject tutorial

In the Job GUI you can leave the default settings (which don't handle Source Code Management). Scroll to the Build section and specify the Maven goals that will be used: in our case we will choose "clean install" which will clean,package and install the application on your local repository.

jenkins new project tutorial

Now let's run the first Job from the Job Panel by clicking on the "Build Now" button. The Maven build system will kicking taking a little to complete. Once done, you will find in the Build History of your Job the outcome of your build. (A sunshine icon means that the process completed successfully).

jenkins tutorial maven example howto jenkins

You can further inspect on the Build process by clicking on the link and following the Console Output link in the next page.
That's all for now. In the next tutorial we will improve our skills by gathering sources from a common Repository and start our Jobs using a time schedule. Stay tuned!