Installing Jenkins on Ubuntu a Simplified Guide

0
Jenkins installation

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

Ubuntu Server

2. JAVA Development Kid (JDK)

Jenkins requires java to run

sudo apt update

open jdk install java

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

adding jenkins repo


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
Install Jenkins

Step 4: Start and Enable Jenkins Service

sudo systemctl enable jenkins.service --now

Start and Enable Jenkins Service

Verify Jenkins is running 

sudo systemctl status jenkins.service

service status jenkins

Step 5: Access Jenkins Web Interfacet (192.168.100.8:8080)


Step 6: Go to that address (/var/lib/jenkins/secrets/initialAdminPassword)


Copy the password and paste it into the Jenkins setup wizard.




Customize Jenkins

Step 7: Create Admin User



Start Using Jenkins

Jenkins Dashboard


Congratulations! You have successfully installed Jenkins on your Ubuntu server.

Post a Comment

0Comments
Post a Comment (0)