How to Install Jenkins on Ubuntu 24.04
Jenkins on Ubuntu 24.04 installs by adding its official software source and then using the system’s package manager.
Jenkins is a free tool that helps you automate tasks like building, testing, and sending out your software code automatically. It’s often used for things called Continuous Integration and Continuous Delivery (CI/CD).
To get it working, you’ll need to grab a security key for Jenkins and tell your computer where to find the Jenkins software. After that, you use a simple command to install the latest version, which is currently 2.454.
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.
Once OpenJDK is installed, continue below to get Jenkins on Ubuntu.
Install Jenkins
Installing Jenkins on Ubuntu 24.04 requires adding its software source first, as it’s not included with Ubuntu by default. You’ll add the Jenkins repository’s security key and then the repository itself using commands. The first step is to add the Jenkins repository GPG key with the command: curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share
Run the command below to add Jenkins repository GPG key.
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc
Then 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
Once added, run the command below to install Jenkins.
sudo apt update
sudo apt install jenkins
/etc/default/jenkins]. Make changes in there as you wish.Save and exit. Then, restart Jenkins.
sudo systemctl restart jenkins
Access Jenkins portal
After you install Jenkins on Ubuntu 24.04, you can access its web portal by going to your server’s address followed by :8080 in your browser. You will need the initial administrator password, which is stored on your server in the file /var/lib/jenkins/secrets/initialAdminPassword. For example, you might visit http://srv1.example.com:8080.
http://srv1.example.com:8080
/var/lib/jenkins/secrets/initialAdminPassword]. Copy and paste it into the box and continue.
Install suggested plugins.

Wait for suggested plugins to be installed.

Create an administrator username and password.

Save and finish the installation wizard.

Jenkins should be ready to use.

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 easiest way to install Jenkins is by using the Jenkins Windows installer, which sets it up as a service on your computer.
Was this guide helpful?
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.
No comments yet — be the first to share your thoughts!