Installing Jenkins

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The first step in using Jenkins as part of a continuous integration pipeline is to install it. This activity will guide you through the steps required to install Jenkins in a Linux environment. After completing this exercise, you will know how to install Jenkins and be ready to begin using it for continuous integration.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install Jenkins in the learning activity environment

Install Jenkins in the learning activity environment via the YUM package manager. You must first configure the Jenkins YUM repositories in order to do this. You can install Jenkins like so:

sudo yum install -y epel-release java-11-openjdk
sudo wget -O /etc/yum.repos.d/jenkins.repo
sudo rpm --import
sudo yum -y install jenkins
Complete Jenkins setup in the browser

After installing and starting Jenkins, there is some setup that needs to be completed through the Jenkins web interface. You can access Jenkins at [Jenkins Server Public IP]:8080.

First, you will need to login using the temporary admin password, which you can find on the server with this command:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

Then, select Install suggested plugins and wait for the plugins to finish installing.

Finally, you will need to fill out a form to create credentials for the first admin user.

Additional Resources

You have been asked to install and configure a Jenkins server so that your team can use it in order to do continuous integration.

In order to accomplish this, you will need to:

  • Install Java JDK 8 or later
  • Configure the Jenkins YUM repository
  • Install Jenkins from the YUM repository
  • Enable and start the Jenkins service
  • Get the temporary admin password and use it to log in to Jenkins
  • Install the default plugins
  • Create a permanent administrator account

Some useful links:

  • Installing Jenkins on RedHat distributions:
  • Jenkins installation documentation for other environments:

UPDATE: use the package jenkins-2.277.4-1.1 when installing Jenkins.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?