Installing Jenkins on CentOS

Posted 8 years ago

This guide will show you how to set up Jenkins which is a popular open source continuous integration tool.

We will require java to be installed on the system, unfortunatly Jenkins doesnt support the GCJ java that CentOS ships with, you will need to download either Oracle Java or the use OpenJDK.

To install OpenJDK 1.7.0 run the following.

yum install java-1.7.0-openjdk

There is a RedHat compatable repo available which we can use to download Jenkins, to install the repo use wget to download and put it in the right place.

wget -O /etc/yum.repos.d/jenkins.repo

We can now use yum to install Jenkins

yum install jenkins

To start the service simply run

service jenkins start

You will probably want Jenkins to start on boot just in case the server is restarted.

checkconfig jenkins on

You should now be able to access the jenkins web UI, by default it runs on port 8080, you will need to replace localhost with the IP of your server


Congratulations you now have Jenkins installed and running.

Tags: jenkins centos rhel continuous integration CI