How to Install Jenkins on Ubuntu 22.04 (Tutorial). In this guide, we introduce Jenkins, its features, advantages and after navigate you through step by step tutorial to install it on Ubuntu 22.04.
First of all, many companies use Jenkins for accelerating the software development process. It is a popular server based application that not only helps build projects but also aids in monitoring and detecting errors in the early stages of the development process.
Shall we continue with the article How to Install Jenkins on Ubuntu 22.04 (Tutorial).
Over the past few years, the need for reliable and useful apps has increased dramatically. Jenkins is one of the powerful open source automation software that fills the space and enables developers to build, test, and check for errors fast.
It is an open source automation server that is used to execute scripts in a continuous integration environment. The software offers a way to automate the process of building, testing, and deploying software.
Jenkins is an open source continuous integration server written in Java that runs on either a Windows or Linux operating system. Integrated with various other tools like GitHub, and many others for the automation of the process.
Moreover, Jenkins is a free tool that supports 1500+ plugins and offers various features that aid in the development, testing, and monitoring of software projects as well as in the Continuous Integration and continuous delivery (CI/CD) process.
In order to use Jenkins, all you need to do is create pipelines, a series of tools that help host, monitor, compile, and test codes and other changes made in the project.
Quick installation – the self contained java based program is easy to install and run on Windows, macOS, and other operating systems.
Easy to configure – the built in help features and its excellent web interface help in setting up and configuring Jenkins easily without any hassle.
Supports multiple plugins – another best feature of Jenkins is it supports 1500+ plugins available in the update center. It also helps integrate with different tools and saves on overhead expenses.
Offers easy distribution – for quick development, testing, and platform deployments, Jenkins simply splits work over numerous platforms.
Supports Integration and Work Distribution– Jenkins can be used to build projects hosted in a number of version control systems including Git, Subversion, Mercurial, and ClearCase. Also supports the deployment of project artifacts to various targets like Hudson, JUnit, or Roo. Further, the open source continuous integration server helps in easy work distribution across different platforms.
Powerful Open source Automation Tool: Simple to create, test, and deploy the most recent versions of any application because it is an open source programme. Users also receive updated versions with better updates, features, and advancements thanks to this capability. Jenkins is a Java based tool that is available for free download and has a web user interface that makes configuration simple for every non technical user. Further, the tool’s support for open source automation features expands the scope for creativity and participation in Jenkins initiatives.
Easy to Install and Configure: In comparison to other DevOps Tools available in the market, Jenkins is an open source continuous integration server that is much easy to install and configure. It can be installed on any operating system that supports Java, including Linux, macOS, and Microsoft Windows. With Jenkin’s inbuilt features and access to several plugins, developers quickly automate the process of deploying applications.
Features
Easy to use and run on different platforms: Jenkins’ adaptability, user friendliness, and compatibility with projects of all sizes are additional advantages. The simple to use DevOps tool supports more than 1500 plugins and has an open design. It additionally facilitates integration with a range of deployment technologies. Users also ask questions and learn about the technology in its strong and engaging community.
Offers API support: An integrated component of Jenkins called an API suite facilitates the retrieval of trustworthy data and aids in running validation tests on each web application.
Provides access to 1500+ plugins: It is a general purpose continuous integration server with many plugins available to support building and testing software projects continuously. With the help of these plugins, you can easily extend its functionality and can do more than just create projects.
We have arrived to the main part of the article How to Install Jenkins on Ubuntu 22.04 (Tutorial).
By default, the Jenkins service is managed by systemd. You manage it easily using the systemctl command.
Let’s start the Jenkins service with the following command.
systemctl start jenkins
Then, enable the Jenkins service so that it will start at system reboot.
systemctl enable jenkins
Now verify the Jenkins status using the following command.
systemctl status jenkins
You should see the following output.
● jenkins.service - Jenkins Continuous Integration Server
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-01-06 04:51:11 UTC; 38s ago
Main PID: 82056 (java)
Tasks: 50 (limit: 4579)
Memory: 1.2G
CPU: 43.902s
CGroup: /system.slice/jenkins.service
└─82056 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java/jenkins.war --webroot=/var/cache/jenkins/war --httpPort=8080
Jan 06 04:50:53 linux jenkins[82056]: 9c920e0bc9524362878c5b457a19c9e6
Jan 06 04:50:53 linux jenkins[82056]: This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
Jan 06 04:50:53 linux jenkins[82056]: *************************************************************
Jan 06 04:50:53 linux jenkins[82056]: *************************************************************
Jan 06 04:50:53 linux jenkins[82056]: *************************************************************
Jan 06 04:51:11 linux jenkins[82056]: 2023-01-06 04:51:11.523+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Complet>
Jan 06 04:51:11 linux jenkins[82056]: 2023-01-06 04:51:11.537+0000 [id=22] INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is >
Jan 06 04:51:11 linux systemd[1]: Started Jenkins Continuous Integration Server.
Jan 06 04:51:11 linux jenkins[82056]: 2023-01-06 04:51:11.707+0000 [id=46] INFO h.m.DownloadService$Downloadable#load: Obtained>
Jan 06 04:51:11 linux jenkins[82056]: 2023-01-06 04:51:11.708+0000 [id=46] INFO hudson.util.Retrier#start: Performed the action>
lines 1-20/20 (END)
Jenkins is now installed and listens on port 8080. You can check it with the following command.
ss -antpl | grep 8080
You should see the jenkins listening port in the following output.
How to Install Jenkins on Ubuntu 22.04 (Tutorial) Conclusion
In this post, we have explained how to install Jenkins on Ubuntu 22.04. We also showed you how to configure Nginx as a reverse proxy for Jenkins. You can now create your first CI/CD pipeline using Jenkins to automate many tasks and makes the CI/CD pipeline tasks reliable.
Lastly, using the jenkins continuous integration tool, you deploy codes and detect errors at an early stage. The main advantage of Jenkins is that it provides a powerful set of features for automating the process of building and testing software projects continuously.
I am a fan of open source technology and have more than 10 years of experience working with Linux and Open Source technologies. I am one of the Linux technical writers for Cloud Infrastructure Services.