Back to the page

In the print window, choose “Save as PDF”.

doubtly doubtly.in

How to Install Jenkins

DevOps · Updated 27 Jan 2024 · Read online: www.doubtly.in/how-to-install-jenkins/

Install Jenkins : Jenkins is a widely adopted open-source continuous integration (CI) and continuous delivery/deployment (CD) tool that has gained immense popularity in the software development community. Its primary purpose is to automate the software development process, encompassing various stages from building and testing code to seamlessly deploying it to production environments.

Key Features and Benefits:

Installation Steps :

login to server via terminal or gitbash using SSH .

STEP 01 : make sure you update and upgrade your newly created virtual machine

sudo su

apt update && apt upgrade 

Step 02 : After Update and upgrade , let us install jenkins on machine , enter below command it’s one line if any line broke is happening make sure you remove that

curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \/usr/share/keyrings/jenkins-keyring.asc > /dev/null

Step 03 : Then add a Jenkins apt repository entry: second command:-

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

Step 04 : Install Java & Jenkins

sudo apt-get update
sudo apt-get install fontconfig openjdk-11-jre
sudo apt-get install jenkins

Congratulation’s you installed jenkins on your server

Open server ip :8080

now use this command

cat /var/lib/jenkins/secrets/initialAdminPassword

you will get password copy that go to webpage enter and continue

congratulations

Practise this on Doubtly (free)