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 -y install java-1.8.0-openjdk epel-release
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum -y install jenkins-2.190.1-1.1
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:

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?