Installing Jenkins in the Lab Playground

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

In this lab, you will be provided a CentOS 8 server for use. The tasks for this lab are to install Java, and then install Jenkins.

You will then need to configure Jenkins with an admin user and test to ensure the GUI interface is accessible.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log In to the Provided Server

Log in to the server as cloud_user with the provided password to ensure you can log in. When the file SERVER-READY is shown in the /home/cloud_user folder, then you can follow along with the tasks.

Install Java and Then Jenkins

Your task for this objective is to install a Java openjdk, the Jenkins repository, and then install Jenkins.

You will use whatever system commands are required.

Access the Jenkins repo.

Start Jenkins and Set It to Auto-start on a Reboot

Using the required commands, enable and start Jenkins. Be sure to configure Jenkins to start automatically on a reboot.

Test Jenkins Is Available for Use on Port 8080 and Continue the Installation

By default, Jenkins uses port 8080. Test it is available and use the generated key from the location shown on the Jenkins screen to create the Jenkins instance.

Create a user called admin with your own choice of passwords, and choose the default plugins option.

You should be able to log into the Jenkins instance via the web page. When you can see the GUI interface, you can mark this lab as complete.

Additional Resources

Your development team currently uses a manual process to put code onto your development and production servers. Management has heard about software called Jenkins and would like to have this software installed for testing. You have been asked to:

  • Install a version of Java, and then configure the provided server to use the Jenkins software repository for Red Hat/CentOS 8.
  • Install Jenkins on the server using the native software management commands, such as dnf or yum.
  • Start the software and configure it for use with a user and the default set of plugins.
  • Then, log in, create a user called admin, and test you can access the GUI.

The server you have been provided is a CentOS 8 instance.

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?