1. Install the latest version of jenkins
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install -y jenkins
for ubuntu 18.04 you should run
sudo apt-get update
sudo apt-get install openjdk-8-jdk
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install -y jenkins
sudo apt-get install openjdk-8-jdk
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
sudo apt update
sudo apt install -y jenkins
2. Start jenkins as a service
sudo systemctl start jenkins
sudo systemctl status jenkins
Now you can open http://localhost:8080 and see the intial password page for jenkins.
For Azure virtual machine you must first open the 8080 port.
go to NSG, on Inbound and Outbound security rules add 8080 as a TCP rule
3. Get the initial password
runsudo cat /var/lib/jenkins/secrets/initialAdminPassword
paste the contents to
4. Customize jenkins
install suggested plugins
5. Create Admin User
0 comments :
Post a Comment