Friday 11 February 2022

Install Jenkins on Ubuntu 20.04

 To Install Jenkins on Ubuntu 20.04


java --version

openjdk 11.0.13 2021-10-19

#add jenkins public key

wget -q -O - | sudo apt-key add -


#add jenkins repository 

sudo sh -c 'echo deb binary/ > /etc/apt/sources.list.d/jenkins.list'

sudo apt update

sudo apt install jenkins

#service status

sudo service jenkins status

Ctrl+C #exit

sudo systemctl start jenkins

sudo service jenkins status

#In the browser


#to get Administrator password

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

#Follow the pages to complete

Install suggested plugins 

Create Frist Admin User

Instance Configuration

Jenkins is Ready!

Jenkins⇒Manage Jenkins⇒Jenkins CLI⇒download "jenkins-cli.jar"

#or go to http://localhost:8080/cli/ 

sudo java -jar jenkins-cli.jar -s http://localhost:8080/ -version

Version: 2.319.3

Add JDK Maven and Git Plugins with Jenkins

Ref:- how-to-install-jenkins-on-ubuntu-20-04

No comments:

Post a Comment