Jenkins installation on Ubuntu: A Step-by-Step Guide
Jenkins, an open-source automation server, is a popular choice among developers for continuous integration and continuous deployment (CI/CD) pipelines. If you're looking to streamline your development workflow, you're in the right place. In this guide, we will walk you through the process of installing Jenkins on Ubuntu, making the setup smooth and hassle-free.
Prerequisites:
Before we dive in ,Ensure you have the following:
1. Ubuntu Server
2. JAVA Development Kid (JDK)
Jenkins requires java to run
sudo apt update
sudo apt install fontconfig openjdk-17-jre
Step 1: Update System Packages
Before installing nay new package, best practice is that you need to update you system packages
sudo apt-get update
Step 2: Download and Install Jenkins
We are going with long term support release
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
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
sudo apt-get update
Step 3: Install Jenkins
sudo apt-get install jenkins
Step 4: Start and Enable Jenkins Service
sudo systemctl enable jenkins.service --now
Verify Jenkins is running
sudo systemctl status jenkins.service
















