Setting up Jenkins Master


Youtube link: Navigation for lab setup

Setup  Jenkins Master

#updating the system
sudo apt-get update -y && sudo apt-get upgrade -y

Incase it prompts, please press ok using keyboard

. Install the applications: wget, unzip and java (openjdk-11-jdk)

apt-get install -y wget unzip openjdk-17-jdk

This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system:

sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \

Then add a Jenkins apt repository entry:

echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ binary/ | sudo tee \
  /etc/apt/sources.list.d/jenkins.list > /dev/null


Update your local package index, then finally install Jenkins:

  sudo apt-get update
  sudo apt-get install jenkins
  systemctl status jenkins


note down the initial password

 cat /var/lib/jenkins/secrets/initialAdminPassword

Open a web browser to log into the Jenkins interface. Use the Jenkins Master IP Address, port 8080 :example

. Click ‘Install Suggested Plugins

When prompted, create a new user using:

username: admin
password: pass@word1
The email address you use for this user is irrelevant (you can use 'admin@localhost'

Done with setup