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

This article explains how to install Jenkins on Ubuntu 24.04.

Jenkins is an open-source automation server for continuous integration and delivery (CI/CD). It automates repetitive tasks in the software development process, like code compilation, testing, and deployment, reducing manual effort and the potential for errors.

With an extensive library of plugins, it seamlessly integrates with various development, testing, and deployment tools, giving you the flexibility and customization you need to build your workflow.

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

Install suggested plugins.

Jenkins plugin installation screen during setup on Ubuntu 24.04

Wait for suggested plugins to be installed.

Jenkins install plugins run

Create an administrator username and password.

Jenkins admin account

Save and finish the installation wizard.

Jenkins setup complete

Jenkins should be ready to use.

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!

Frequently Asked Questions

What are the system requirements to install Jenkins on Ubuntu 24.04?

To install Jenkins on Ubuntu 24.04, you need to have OpenJDK installed as Jenkins requires Java to run. Additionally, ensure your system meets the minimum hardware requirements for optimal performance.

How do I install OpenJDK before installing Jenkins?

You can install OpenJDK on Ubuntu 24.04 by running the command 'sudo apt install openjdk-11-jdk' in the terminal. This will install the necessary Java Development Kit required for Jenkins.

How can I access the Jenkins web interface after installation?

After installing Jenkins, you can access the web interface by navigating to 'http://:8080' in your web browser. Replace '' with your server's actual IP address or hostname.

What should I do if Jenkins fails to start after installation?

If Jenkins fails to start, check the status using 'sudo systemctl status jenkins' to identify any errors. Ensure that the configuration file is correctly set up and that all dependencies, like OpenJDK, are properly installed.

How do I install plugins in Jenkins?

To install plugins in Jenkins, navigate to the 'Manage Jenkins' section in the web interface and select 'Manage Plugins.' From there, you can browse and install suggested plugins to enhance Jenkins functionality.

Was this guide 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.

2469 articles → Twitter

📚 Related Tutorials

Enable Fractional Scaling in Ubuntu: A Step-by-Step Guide
Ubuntu Linux Enable Fractional Scaling in Ubuntu: A Step-by-Step Guide
How to Change Your Profile Picture in Ubuntu Linux
Ubuntu Linux How to Change Your Profile Picture in Ubuntu Linux
How to install the Tor Browser on Ubuntu 24.04
Ubuntu Linux How to install the Tor Browser on Ubuntu 24.04
How to Install VMware Workstation Pro on Ubuntu Linux
Ubuntu Linux How to Install VMware Workstation Pro on Ubuntu Linux

Leave a Reply

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