How to install & configure Jenkins on CentOS/RHEL/Fedora/openSUSE

Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle. It provides 1000 of plugins to support building, deploying and automating any project. Many users calling Jenkins as a open source automation server.

Jenkins is a self-contained Java-based program, ready to run out-of-the-box, with packages for Windows, Mac OS X and other Unix-like operating systems.

Jenkins can be easily set up and configured through easy to use web interface. Jenkins can easily distribute work across multiple machines, helping drive builds, tests and deployments across multiple platforms faster and can be extended via its plugin architecture.

Prerequisites for Jenkins

Jenkins is running on servlet container such as Apache Tomcat. It’s required JAVA and Jenkins team suggested to install openJDK.

How to install openJDK on Linux

Install Jenkins on CentOS/RHEL

We can easily install Jenkins on CentOS/RHEL system by adding Jenkins official repository.

[Install Jenkins stable]
$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat-stable/jenkins.repo
$ sudo rpm --import http://pkg.jenkins.io/redhat-stable/jenkins.io.key
$ sudo yum install jenkins

Install latest Jenkins (Unstable)

$ sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins.io/redhat/jenkins.repo
$ sudo rpm --import http://pkg.jenkins.io/redhat/jenkins.io.key
$ sudo yum install jenkins

Install Jenkins on openSUSE

We can easily install Jenkins on openSUSE system by adding Jenkins official repository.

[Install Jenkins stable]
$ sudo zypper addrepo -f http://pkg.jenkins.io/opensuse-stable/ jenkins
$ sudo zypper install jenkins

Install latest Jenkins (Unstable)

$ sudo zypper addrepo -f http://pkg.jenkins.io/opensuse/ jenkins
$ sudo zypper install jenkins

Install Jenkins on Fedora

We can easily install Jenkins on Fedora system from distirbution official repository.

$ sudo dnf install jenkins

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...