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.
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 involves adding its special software source because it doesn’t come with Ubuntu by default.
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
You can open the Jenkins web portal after installation by typing your server’s IP address or name into a web browser, followed by :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!