Setup Jenkins Master
Setting up Jenkins
Setup Jenkins Master
Setup Jenkins Master
Youtube link: Navigation for lab setup
Setup Jenkins Master
1
2
#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)
1
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:
1
2
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \
https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key
Then add a Jenkins apt repository entry:
1
2
3
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
Update your local package index, then finally install Jenkins:
1
2
3
4
5
sudo apt-get update
sudo apt-get install jenkins
systemctl status jenkins
note down the initial password
1
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 http://192.168.40.131:8080
. Click ‘Install Suggested Plugins
When prompted, create a new user using:
1
2
3
username: admin
password: pass@word1
The email address you use for this user is irrelevant (you can use 'admin@localhost'
Done with setup
This post is licensed under
CC BY 4.0
by the author.



