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.

1 Response

  1. www.use.com says:

    I’m amazed, I have to admit. Seldom do I come across a blog that’s both educative and amusing,
    and without a doubt, you have hit the nail
    on the head. The problem is something that not enough folks are speaking intelligently about.
    I am very happy that I stumbled across this in my search for something relating to this.

Leave a Reply

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