Follow
Ubuntu Linux

How to Install Jenkins on Ubuntu 24.04

Richard
Written by
Richard
Feb 28, 2025 Updated Mar 20, 2026 3 min read
How to Install Jenkins on Ubuntu 24.04
How to Install Jenkins on Ubuntu 24.04

You install Jenkins on Ubuntu 24.04 by adding its official repository and then using the apt package manager to install the software.

Jenkins is an open-source automation server widely used for Continuous Integration and Continuous Delivery (CI/CD) pipelines. It empowers you to automate tasks like building, testing, and deploying your software projects efficiently.

This process typically involves retrieving the Jenkins Debian package signing key and adding the Jenkins repository to your system’s sources list. Once configured, you can use apt to install the latest stable version of Jenkins, which is currently 2.454.

⚡ Quick Answer

Install Jenkins on Ubuntu 24.04 by adding its repository using curl and echo commands. Then, update your package list with sudo apt update and install Jenkins with sudo apt install jenkins. Finally, restart the service with sudo systemctl restart jenkins.

Install OpenJDK

Jenkins relies on Java to work. If you don’t already have OpenJDK installed, read the post below to install it.

Install OpenJDK on Ubuntu

Once OpenJDK is installed, continue below to get Jenkins on Ubuntu.

Install Jenkins

Jenkins packages are not available in the Ubuntu default repositories. You must add the package repository to install from.

Run the command below to add Jenkins repository GPG key.

💻Code
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc

Then add the repository.

Command Prompt
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

Once added, run the command below to install Jenkins.

🐧Bash / Shell
sudo apt update
sudo apt install jenkins

After installing Jenkins, its default configuration file is at [/etc/default/jenkins]. Make changes in there as you wish.

Save and exit. Then, restart Jenkins.

🐧Bash / Shell
sudo systemctl restart jenkins

Access Jenkins portal

Once Jenkins is installed, you can access its portal using the server’s IP address or hostname followed by port 8080.

http://srv1.example.com:8080

When prompted for the Administrator password, find it at [/var/lib/jenkins/secrets/initialAdminPassword]. Copy and paste it into the box and continue.

Jenkins admin password
Jenkins admin password

Install suggested plugins.

Jenkins plugin installation screen during setup on Ubuntu 24.04
Jenkins plugin installation screen during setup on Ubuntu 24.04

Wait for suggested plugins to be installed.

Jenkins install plugins run
Jenkins install plugins run

Create an administrator username and password.

Jenkins admin account
Jenkins admin account

Save and finish the installation wizard.

Jenkins setup complete
Jenkins setup complete

Jenkins should be ready to use.

Main Jenkins dashboard interface after successful installation on Ubuntu
Main Jenkins dashboard interface after successful installation on Ubuntu

That should do it!

Conclusion:

Installing Jenkins on Ubuntu 24.04 is straightforward and enhances your software development process through automation. Here are the key takeaways:

  • Open-source Automation: Jenkins is a powerful tool for continuous integration and continuous delivery (CI/CD).
  • Java Dependency: Ensure OpenJDK is installed, as Jenkins requires it to function correctly.
  • Adding Repositories: Use the provided commands to add the Jenkins repository and install it via the terminal.
  • Accessing Jenkins: Access Jenkins through the server’s IP address at port 8080.
  • Setup: Follow the installation wizard to configure Jenkins and set up an administrator account.
  • Plugin Installation: Leverage suggested plugins for enhanced functionality and integration with other tools.

With Jenkins up and running, you can improve your development workflow and streamline your processes effectively!

How to check if Jenkins is installed in Ubuntu?

You'll see manage Jenkins. So if I click on manage finish Jenkins. I can also then go down to about Jenkins. And here I can also see Jenkins version 2.440. 2.

Where is Jenkins in Ubuntu?

Jenkins home directory jenkins . On Ubuntu by default, this is set to /var/lib/jenkins .

What is the best way to install Jenkins?

The simplest way to install Jenkins on Windows is to use the Jenkins Windows installer. That program will install Jenkins as a service using a 64 bit JVM chosen by the user. Keep in mind that to run Jenkins as a service, the account that runs Jenkins must have permission to login as a service.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *