July Release Confetti
150+ New Hands-on Training in Aws, Linux, Azure
Red Hat, Devops, and More
Learn More

Installing Jenkins

Length: 00:11:53

Lesson Summary:

The first step in using Jenkins is installing it. In this lesson, you will learn which version of Jenkins to use for this course. The lesson will also show you how to install that version in a CentOS 7 environment. Feel free to follow along with the demonstration using a Linux Academy cloud server.

For more information on installing Jenkins, check out the documentation:

https://jenkins.io/doc/book/installing/

https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions

Here are the commands used in this lesson's demo:

sudo yum -y install git java-1.8.0-openjdk
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.89.4
sudo systemctl enable jenkins
sudo systemctl start jenkins

You can check the Jenkins log like so:

sudo tail -f /var/log/jenkins/jenkins.log

Once you install Jenkins, you will need the temporary admin password to complete setup in the browser. You can get the temporary admin password with this command:

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


This lesson is only available to Linux Academy members.

Sign Up To View This Lesson
Or Log In

Looking For Team Training?

Learn More