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.

[ac-button size=”large” color=”orange” style=”flat” icon=”fa-link” url=”https://www.2daygeek.com/install-java-openjdk-6-7-8-on-ubuntu-centos-debian-fedora-mint-rhel-opensuse-manjaro-archlinux/” target=”_blank”]How to install openJDK on Linux[/ac-button]

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

About Magesh Maruthamuthu

Love to play with all Linux distribution

View all posts by Magesh Maruthamuthu

Leave a Reply

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