Jenkins – Installation

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

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

sudo apt-get update
sudo apt-get install -y openjdk-8-jre
sudo apt-get install -y jenkins

# Load jenkins on the server
sudo systemctl status jenkins

# start jenkins as a service which will survive server restarts
sudo systemctl enable jenkins

# GO to a browser and type the server ip and port 8080


You should see the screen for unlocking Jenkins which needs the password. This password can be found in 2 ways –

#first method sudo cat /var/lib/jenkins/secrets/InitialAdminPassword

Leave A Reply

Your email address will not be published. Required fields are marked *