How to Install Jenkins on Ubuntu 22.04

Install Jenkins on Ubuntu 22.04

In this article, we will have explained the necessary steps to install Jenkins on Ubuntu 22.04 LTS. Before continuing with this tutorial, make sure you are logged in as a user with sudo privileges. All the commands in this tutorial should be run as a non-root user.

Jenkins is an open-source automation server that enables developers around the world to reliably build, test, and deploy their software. It supports multiple operating systems such as Windows, Mac OS X, and Linux, and can easily be distributed across multiple machines.


  • Operating System with Ubuntu 22.04
  • Server IPv4 Address with Superuser Privileges (Root Access)
  • Gnome Terminal for Linux Desktop
  • PuTTy SSH client for Windows or macOS
  • Powershell for Windows 10/11
  • Familiar with APT Commands

Install Jenkins on Ubuntu 22.04 LTS

Step 1. First, before you start installing any package on your Ubuntu server, we always recommend making sure that all system packages are updated.

sudo apt update
sudo apt upgrade
sudo apt install software-properties-common dirmngr apt-transport-https gnupg

Step 2. Installing Java.

Jenkins requires Java to run and therefore we need to install the Java Runtime Environment:

sudo apt install openjdk-11-jre

Verify if the installation:

java -version

Step 3. Install Jenkins on Ubuntu Linux.

Installing the Jenkins on your Ubuntu 22.04 Jammy Jellyfish system is straightforward, Now import the Jenkins GPG key to verify the authenticity of the installation:

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

Then, add the Jenkins repository use this command:

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

After that, install the latest version of Jenkins using the below command:

sudo apt update
sudo apt install jenkins

Once the installation is successful, Jenkins will be started. Use this command to check the service status:

sudo systemctl enable jenkins 
sudo systemctl status jenkins

Step 4. Accessing Jenkins.

Now you can access Jenkins Web UI on “http://your-IP-address:8080“. When you first access a new Jenkins instance, you are asked to unlock it using an automatically generated password:

Install Jenkins on Ubuntu 22.04

sudo cat /var/lib/jenkins/secrets/initialAdminPassword

You should see a 32-character long alphanumeric password:


Copy the password from your terminal, paste it into the Administrator password field and click Continue:

Install Jenkins on Ubuntu 22.04

Next, click on the Install suggested plugins box, and the installation process will start immediately:

Install Jenkins on Ubuntu 22.04 LTS

Once the installation is complete, you will be prompted to set up the first administrative user.

That’s all you need to do to install Jenkins on Ubuntu 22.04 LTS Jammy Jellyfish. I hope you find this quick tip helpful. For further reading on the installation of the Jenkins automation server, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.