Skip to content

Guide for Installing Jenkins on Ubuntu 24.04 Operating System

"Discover a comprehensive guide on setting up Jenkins on Ubuntu 24.04 for seamless continuous integration and delivery. Dive right in with this easy-to-follow tutorial."

Guide for Installing Jenkins on Ubuntu 24.04
Guide for Installing Jenkins on Ubuntu 24.04

Guide for Installing Jenkins on Ubuntu 24.04 Operating System

Jenkins, an open-source automation server, offers an ideal platform for continuous integration (CI) and continuous delivery (CD) of software projects. This guide will walk you through the process of installing Jenkins on Ubuntu 24.04 LTS, a modern, stable, and secure operating system that is particularly suitable for running Jenkins in production CI/CD environments.

Prerequisites

Before you begin, ensure you have created a VPS instance on Shape.Host (or any other provider of your choice) and SSH into the server. For this tutorial, we will use a plan with at least 2 CPUs, 4 GB RAM, and 20 GB SSD.

Installation Steps

  1. Add the official Jenkins APT repository to your sources list.

  1. Update your system and install OpenJDK 17.

  1. Install the latest stable Jenkins package.

  1. Add Jenkins' trusted key to your system.

  1. After the installation is complete, start the Jenkins service immediately.

  1. Enable Jenkins to start automatically on system boot.

  1. You should see the Jenkins unlock screen.

Open your web browser and navigate to . Follow the instructions to unlock Jenkins and set up initial admin credentials.

  1. Confirm Jenkins is active and running.

  1. Secure Jenkins by setting up HTTPS, integrating LDAP, SAML, or GitHub OAuth for secure user authentication, configuring RBAC using the "Matrix Authorization" plugin, keeping plugins and core Jenkins updated, enabling backup routines, and hardening the Jenkins server using UFW, Fail2Ban, and AppArmor.

Key Advantages of Using Jenkins on Ubuntu 24.04

  • Compatibility with Latest Software and Java 17: Jenkins versions (such as 2.426.1 LTS) now use Java 17 by default, supporting modern Java features and improving performance and security. Ubuntu 24.04, being a recent LTS release, supports Java 17 and other modern runtimes seamlessly, ensuring Jenkins runs efficiently with the latest tooling.
  • Stable and Secure OS Platform: Ubuntu 24.04 LTS provides long-term support with regular security updates and performance enhancements, making it a reliable foundation for Jenkins servers where continuous availability is critical.
  • Ease of Automation and Integration: Jenkins offers seamless integration with source control systems like GitHub for automated builds and testing pipelines. Running Jenkins on Ubuntu enables use of extensive Linux tools, scripting environments, and Docker, which support automated build-test-deploy workflows.
  • Community and Ecosystem Support: Both Jenkins and Ubuntu enjoy large, active communities, providing abundant plugins, troubleshooting guides, and shared best practices to optimize CI/CD pipelines.
  • Resource Efficiency and Scalability: Ubuntu's lightweight server environment and Jenkins’ support for distributed builds with inbound agents allow efficient utilization of resources as project scale grows.
  • Improved Build and Deployment Speed: Updates like Jenkins’ native support and Kubernetes agent improvements help streamline logs management and task scheduling, boosting efficiency in continuous build environments.

Data-and-cloud-computing technologies like Jenkins leverage cloud infrastructure for optimal CI/CD execution. By running Jenkins on technology such as Ubuntu 24.04 LTS, you can benefit from its modern, efficient, and secure nature, ensuring seamless integration, scalability, and improved build and deployment speed. Utilizing cutting-edge services like Shape.Host, as demonstrated in this guide, further enhances your ability to create robust data-and-cloud-computing environments.

Read also:

    Latest