Install Hudson/Jenkins on CentOS

Hudson monitors executions of repeated jobs, such as building a software project or jobs run by cron, we can use it as a continuous integration server for PHP Application.

Theses quick steps can be used to install Hudson or Jenkins, simply replace all hudson occurences with jenkins.

Let’s see how to install Hudson on a CentOS 5.5 server.

Installing Java, Ant and Tomcat

Then we need to add Tomcat to our server startup

Now edit Tomcat configuration file to add Hudson home directory (We will use /data/hudson/)

Add at the bottom of the file

Installing Hudson 2.0.0

Go to webapps directory

Download lastest version of Hudson from http://hudson-ci.org/ or latest from Jenkins from http://jenkins-ci.org/

Now make home folder for hudson and give it Tomcat user right

Restart Tomcat to finalize installation

Now check if everything is ok by opening a web browser and access hudson with something like http://yourhost:8080/hudson/

You will see something like this :

Hudson start screen

You can now add your project, if you have a PHP Project, check http://jenkins-php.org/ for an easy template solution.

Leave a Reply

Your email address will not be published. Required fields are marked *