Friday, December 20, 2013

How to create a Maven Build Job with Hudson?

In this article we will see how to create a Simple Maven build job that would create WAR file with the help of Continuous Integration (CI) server.

clip_image002

1] To build a Maven 2/3 project (Legacy) Hudson takes advantage of your POM files and drastically reduces the configuration.

clip_image004

2] In the Source code management section select your “SCM”. In my case it’s “Apache Subversion”. Select it and specify the “Repository URL”.

clip_image006

If you repository have some credentials set to checkout the code , update the it.

clip_image008

3] Under the build section, in Root POM field specify the pom file name.

clip_image010

4] Do you believe that we have done with the maven build configuration setup in Hudson? The truth is, it’s completed, save the project. In Hudson main Dashboard page you could able to view all the projects created.

clip_image012

5] Once everything is done, just click the Build now button in the left pane of the Hudson console for action.

clip_image014

6] Just now open up the console to check the output.

clip_image016

That’s it! Please do let us know if you have any queries!

1 comment: