Jenkins Installation

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we will install Java and Jenkins. Once this is done and the Jenkins instance is up and running, take some time to look around the interface and ensure you are familiar with all the menu items and other parts of the interface.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install java-1.8.0-openjdk-devel
  1. Install Java:

    sudo yum install -y java-1.8.0-openjdk-devel
Install the Repo and Key, and Then Install Jenkins
  1. Install wget:

    sudo yum install -y wget
  2. Download the repo:

    sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo
  3. Import the required key:

    sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key
  4. Install Jenkins:

    sudo yum install -y jenkins

Additional Resources

Your company has decided to adopt Jenkins as its CI/CD solution. You will need to install Jenkins as an autostart service accessible on the public IP address on the default port.

The administrative user should be Jenkins_admin, and the server should have the default/suggested plugins.

The Jenkins repo is located at:

wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat/jenkins.repo

The Jenkins key for that repo is located at:

rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key

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?