Installing Jenkins on Ubuntu OS

Thu Feb 27, 2025

In this document we will see a step by step guide on how to install Jenkins on Ubuntu OS

  1. Launch your ubuntu instance and login to it
  2. Update the repositories by running below command
             sudo apt update 

3. Install Java by running below command

 sudo apt install fontconfig openjdk-17-jre 
Add the required keys by running below command
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \ https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key

Add the repository

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

Now update the repository
     sudo apt-get update

Now install Jenkins and if prompted press Y

   sudo apt-get install jenkins

If you are running Jenkins in an EC2 instance make sure to allow inbound traffic on port 8080 in your instance's security group.

Now open your browser and type http:host-ip:8080


Chinmay Biswal
Solution Architect