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.
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://pkg.jenkins.io/redhat-stable/jenkins.io.key sudo yum -y install jenkins-2.277.4-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.