Tuesday, August 29, 2023

Install Jenkins on Linux

 Jenkins


Add the following key on the linux

wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -

Add following entries in the /etc/apt/sources.list file (use Vi editor)

deb https://pkg.jenkins.io/debian-stable binary/

Java is required to run jenkins. Refer to Java Requirements Page. We will install Java 11 version. Jenkins 2.1+ versions requires Java 8 or Java 11
Update package index

sudo apt-get update

Install Jenkins, run

sudo apt-get install jenkins

Once the installation is complete. launch Jenkins in URL. I have configured hostname devops along with localhost. The URLs are

http://localhost:8080

http://devops:8080

Enter the admin password from /var/lib/jenkins/secrets/initialAdminPassword. If copy doesn't work, type in manually
Click on Install suggested Plugins
Jenkins Instance is ready for the use