How To Install Jenkins on CentOS 8

Install Jenkins on CentOS 8

In this tutorial we will show you how to install and configuration of Jenkins on CentOS 8. For those of you who didn’t know, Jenkins is an open source continuous integration tool written in Java. Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet container such as Apache Tomcat. It supports SCM tools including AccuRev, CVS, Subversion, Git, Mercurial, Perforce, Clearcase and RTC, and can execute Apache Ant and Apache Maven based projects as well as arbitrary shell scripts and Windows batch commands.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Jenkins on CentOS 8.

Install Jenkins on CentOS 8

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Java.

Install JAVA on the server so we can use jenkins properly:

Verify the Java version by running the following command:

Step 3. Installing Jenkins on CentOS 8.

First, download and enable Jenkins Repository:

Now, import Jenkins GPG Key:

Then, start proceed installation Jenkins:

Now you have to start jenkins service so we can use it and enable it on boot so if system will reboot jenkins will start automatically:

Step 4. Configure Firewall.

You know Jenkins is works on port 8080 so we need to allow connection on that port by adding it in firewall:

Step 5. Accessing Jenkins.

Jenkins will be available on HTTP port 8080 by default. Open your favorite browser and navigate to or http://server-ip:8080 and complete the required the steps to finish the installation. Default installation password can be found at /var/lib/jenkins/secrets/initialAdminPassword as showing in below image.

Install Jenkins on CentOS 8

Congratulation’s! You have successfully installed Jenkins. Thanks for using this tutorial for installing Jenkins on CentOS 8 system. For additional help or useful information, we recommend you to check the official Jenkins website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!