How to Install Jenkins on CentOS 8

Install Jenkins on CentOS 8

In this article, we will have explained the necessary steps to install and configure Jenkins on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Jenkins is the most popular open-source, Java-based automation server that allows you to easily set up a continuous integration and continuous delivery (CI/CD) pipeline. Jenkins is also considered as automation tool or server, It helps to automate software development which is related to building, testing and deploying.

Install Jenkins on CentOS 8

Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.

Step 2. Install Java.

Java is one of the perquisites for Jenkins, To install the Open Java Development Kit (OpenJDK) run the following commands:

Verify the Java version using below command:

Step 3. Install Jenkins on CentOS systems.

Run the following commands to download the repo file and import the GPG key:

To Install Jenkins on CentOS systems, enter the following in the terminal:

Once the installation process is complete, start the Jenkins service and enable it to start on system boot:

Step 4. Configure firewall rules for Jenkins.

Allow 8080 tcp port in OS firewall for Jenkins:

Step 5. Setting up Jenkins.

For start setting up our Jenkins, we need to visit its web dashboard running on port 8080. so open your browser and see your public IP address or your Domain name followed by the port number through it:

When you first access a new Jenkins instance, you are asked to unlock it using an automatically generated password:

Install Jenkins on CentOS 8

You should see an 32 character long alphanumeric password:

Copy the password from your terminal, paste it into the Administrator password field and click Continue:

Install Jenkins on CentOS 8

Next, click on the Install suggested plugins box, and the installation process will start immediately:

Install Jenkins on CentOS 8

That’s all you need to do to install Jenkins on CentOS 8. I hope you find this quick tip helpful. For further reading on Jenkins, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.