{"id":15921,"date":"2019-03-12T12:09:54","date_gmt":"2019-03-12T12:09:54","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=15921"},"modified":"2026-01-13T12:10:07","modified_gmt":"2026-01-13T12:10:07","slug":"how-to-install-jenkins-on-ubuntu","status":"publish","type":"post","link":"\/tutorials\/how-to-install-jenkins-on-ubuntu","title":{"rendered":"How to install Jenkins on Ubuntu"},"content":{"rendered":"<p>Typically, software development presents its own set of challenges. One of them is ensuring that software is built, tested, and deployed in a timely manner and that any errors are fixed prior to the production phase.<\/p><p>Jenkins is an open-source automation server for continuous integration (CI) and continuous delivery (CD) models. In other words, it creates, tests, and deploys software projects.<\/p><p>This tutorial will demonstrate two methods for installing Jenkins and any configuration that comes with it on Ubuntu 22.04.<\/p><p><strong>A Brief Overview of Installing Jenkins on Ubuntu:<\/strong><\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td>Required Knowledge<\/td><td>Basic Ubuntu server management, SSH access, Java Development Kit<\/td><\/tr><tr><td>Privileges Required<\/td><td>Root or sudo user<\/td><\/tr><tr><td>Difficulty<\/td><td>Intermediate<\/td><\/tr><tr><td>Main Goal<\/td><td>Installing Jenkins for CI\/CD, configuring Java and Ubuntu firewall<\/td><\/tr><\/tbody><\/table><\/figure><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheat-Sheet.pdf\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"2048\" height=\"566\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/public\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div><p>\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-jenkins-used-for\">What Is Jenkins Used For<\/h2><p>To understand Jenkins, users must have an understanding of continuous integration (CI) and continuous delivery (CD) models and their purpose:<\/p><ul class=\"wp-block-list\">\n<li><strong>Continuous integration (CI)<\/strong> &ndash; a practice of constantly merging development work with the main branch.<\/li>\n\n\n\n<li><strong>Continuous delivery (CD)<\/strong> &ndash; a continual delivery of code to an environment once the code is ready to ship, applicable for both staging and production environments. The product is then delivered to quality assurance specialists or customers for review and inspection.<\/li>\n<\/ul><p>Developers regularly update their code using shared repositories, such as <strong>GitHub<\/strong> or <strong>Team Foundation Server (TFS)<\/strong>, now known as <strong>Azure DevOps Server<\/strong>. Therefore, Jenkins is exceptionally helpful when it comes to daily builds.<\/p><p>As soon as a developer commits any change to the shared repository, Jenkins will immediately trigger a build and immediately notify users in case of an error, which is an example of <strong>continuous integration<\/strong>.<\/p><p>With Jenkins, users can also set post-build tests &ndash; unit tests, performance tests, and acceptance tests &ndash; in an automated manner. Whenever a successful build occurs, Jenkins performs these tests and generates a report, which is an example of <strong>continuous delivery<\/strong>.<\/p><p>Other than that, the main advantages of Jenkins are as follows:<\/p><ul class=\"wp-block-list\">\n<li><strong>Ease of use<\/strong> &ndash; its user interface is simple, intuitive, and visually appealing.<\/li>\n\n\n\n<li><strong>Great extensibility<\/strong> &ndash; Jenkins is highly flexible and easy to adapt to one&rsquo;s preferences. There are thousands of open-source plugins available for the automation server, each with different functionalities and features.<\/li>\n\n\n\n<li><strong>All-around support<\/strong> &ndash; users receive additional assistance for different version control systems, code quality metrics, build notifiers, and UI customization.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-install-jenkins-on-ubuntu\">How to Install Jenkins on Ubuntu<\/h2><p>Installing Jenkins is as easy as using the integrated APT package manager of Ubuntu. However, keep in mind that some requirements must be met for a <a href=\"\/tutorials\/what-is-vps-hosting\">VPS-based system<\/a><strong> <\/strong>before proceeding with the installation.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/public\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-prerequisites-for-jenkins-installation\">Prerequisites for Jenkins Installation<\/h3><ul class=\"wp-block-list\">\n<li>Ubuntu server with 22.04 version and SSH access<\/li>\n\n\n\n<li>A non-root sudo user<\/li>\n\n\n\n<li>256 MB of RAM and 1 GB of drive space for solo use. However, no less than 10 GB is recommended if Jenkins runs inside a <a href=\"\/tutorials\/docker-start-a-container\/\">Docker container<\/a><\/li>\n\n\n\n<li>4+ GB of RAM and 50+ GB of drive space for group use<\/li>\n\n\n\n<li>Oracle JDK 8 or 11<\/li>\n\n\n\n<li>A web server running <a href=\"\/tutorials\/nginx-vs-apache-what-to-use\/\">Apache or Nginx<\/a><\/li>\n<\/ul><h3 class=\"wp-block-heading\" id=\"h-1-install-java-development-kit\">1.  Install Java Development Kit<\/h3><p>Jenkins supports Java 8 and Java 11. However, in this tutorial, we will use Java Runtime Environment 11.<\/p><p>First, update the default Ubuntu packages lists for upgrades with the following command:<\/p><pre class=\"wp-block-preformatted\">sudo apt-get update<\/pre><p>Then, run the following command to install JDK 11:<\/p><pre class=\"wp-block-preformatted\">sudo apt-get install openjdk-11-jdk<\/pre><p>To test if Java has been installed successfully, run this command:<\/p><pre class=\"wp-block-preformatted\">java -version<\/pre><p>It should look something like this:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png\"><img decoding=\"async\" width=\"798\" height=\"87\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png\/public\" alt=\"Checking the Java version in the command line interface\" class=\"wp-image-59905\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png\/w=798,fit=scale-down 798w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><\/a><\/figure><\/div><p>\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Sugested Reading<\/h4>\n                    <p>Check out our guide to learn<a href=\"\/tutorials\/install-java-ubuntu\"> how to install Java on Ubuntu<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-2-install-jenkins\">2. Install Jenkins<\/h3><p>Now, we will install Jenkins itself. Issue the following four commands in sequence to initiate the installation from the Jenkins repository:<\/p><pre class=\"wp-block-preformatted\">curl -fsSL https:\/\/pkg.jenkins.io\/debian-stable\/jenkins.io.key | sudo tee \\\n  \/usr\/share\/keyrings\/jenkins-keyring.asc &gt; \/dev\/null\n\necho deb [signed-by=\/usr\/share\/keyrings\/jenkins-keyring.asc] \\\n  https:\/\/pkg.jenkins.io\/debian-stable binary\/ | sudo tee \\\n  \/etc\/apt\/sources.list.d\/jenkins.list &gt; \/dev\/null\n\nsudo apt-get update\n\nsudo apt-get install jenkins<\/pre><p>Once that&rsquo;s done, start the Jenkins service with the following command:<\/p><pre class=\"wp-block-preformatted\">sudo systemctl start jenkins.service<\/pre><p>To confirm its status, use:<\/p><pre class=\"wp-block-preformatted\">sudo systemctl status jenkins<\/pre><p>If it&rsquo;s working correctly, the terminal window will look like this:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png\"><img decoding=\"async\" width=\"843\" height=\"192\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png\/public\" alt=\"Checking if Jenkins service is running on Ubuntu 20.04 system\" class=\"wp-image-59906\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png\/w=843,fit=scale-down 843w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 843px) 100vw, 843px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-3-adjust-firewall-and-configuring-jenkins\">3. Adjust Firewall and Configuring Jenkins<\/h3><p>With Jenkins installed, we can proceed with adjusting the firewall settings. By default, Jenkins will run on port <strong>8080<\/strong>.<\/p><p>In order to ensure that this port is accessible, we will need to configure the built-in <a href=\"\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\">Ubuntu firewall<\/a> (ufw). To open the 8080 port and enable the firewall, use the following commands:<\/p><pre class=\"wp-block-preformatted\">sudo ufw allow 8080<\/pre><pre class=\"wp-block-preformatted\">sudo ufw enable<\/pre><p>Once done, test whether the firewall is active using this command:<\/p><pre class=\"wp-block-preformatted\">sudo ufw status<\/pre><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/ufw-firewall-status-for-Ubuntu.png\"><img decoding=\"async\" width=\"476\" height=\"145\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/ufw-firewall-status-for-Ubuntu.png\/public\" alt=\"ufw firewall status for Ubuntu\" class=\"wp-image-59907\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/ufw-firewall-status-for-Ubuntu.png\/w=476,fit=scale-down 476w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/ufw-firewall-status-for-Ubuntu.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/ufw-firewall-status-for-Ubuntu.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><\/figure><\/div><p>\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>If an error about the ufw command not being available appears, install it using the <strong>sudo apt install ufw<\/strong> command and proceed with the steps as shown above.<\/p>\n                <\/div>\n\n\n\n<\/p><p>As an alternative, you can also set up a firewall via hPanel. Select your VPS and click on the <strong>Firewall<\/strong> button:<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"69e01f71a244c\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"482\" height=\"972\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/hpanel-vps-firewall-sidebar.png\/public\" alt=\"The Firewall button on hPanel VPS dashboard\" class=\"wp-image-125832\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/hpanel-vps-firewall-sidebar.png\/w=482,fit=scale-down 482w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/hpanel-vps-firewall-sidebar.png\/w=149,fit=scale-down 149w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/hpanel-vps-firewall-sidebar.png\/w=74,fit=scale-down 74w\" sizes=\"(max-width: 482px) 100vw, 482px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Then, create a new firewall configuration and give it a name. Once done, you will be able to edit the configuration and add any preferred firewall rules:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2016\/09\/hpanel-vps-firewall-configuration.png\"><img decoding=\"async\" width=\"1024\" height=\"465\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/09\/hpanel-vps-firewall-configuration.png\/public\" alt=\"The process of creating a new firewall rules on hPanel\" class=\"wp-image-90699\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/09\/hpanel-vps-firewall-configuration.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/09\/hpanel-vps-firewall-configuration.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/09\/hpanel-vps-firewall-configuration.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2016\/09\/hpanel-vps-firewall-configuration.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Once finished, remember to click the <strong>toggle<\/strong> on your new firewall configuration to activate it. If you want a more straightforward process, you can simply ask Kodee, <a href=\"https:\/\/www.hostinger.com\/blog\/kodee\">our AI assistant<\/a>, to open the necessary ports on your server.<\/p><p>With the firewall configured, it&rsquo;s time to set up Jenkins itself. Type in the IP of your VPS along with the port number. The Jenkins setup wizard will be similar to the example below:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port.png\"><img decoding=\"async\" width=\"950\" height=\"563\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port.png\/public\" alt=\"A web browser window for the initial setup of Jenkins. The red border shows an example IP address with an 8080 port\" class=\"wp-image-59908\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port.png\/w=950,fit=scale-down 950w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/a><\/figure><\/div><p>Just make sure to replace <strong>185.185.185.185<\/strong> with an actual IP. An administrator password will be needed to proceed with the configuration. It can be easily found inside the <strong>\/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/strong> file. To check the initial password, use the <a href=\"\/tutorials\/linux-cat-command-tutorial-and-examples\/\"><strong>cat<\/strong> command<\/a> as indicated below:<\/p><pre class=\"wp-block-preformatted\">sudo cat \/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/pre><p>Copy the password, go back to the setup wizard, paste it and click <strong>Continue<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png\"><img decoding=\"async\" width=\"906\" height=\"507\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png\/public\" alt=\"Administrator password field for unlocking Jenkins with a red border indicating the Continue button\" class=\"wp-image-59909\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png\/w=906,fit=scale-down 906w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/a><\/figure><\/div><p>Next, the <strong>Customize<\/strong> <strong>Jenkins<\/strong> window will appear. We recommend simply selecting the <strong>Install suggested plugins <\/strong>option for this step.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins.png\"><img decoding=\"async\" width=\"716\" height=\"490\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins.png\/public\" alt=\"The Customize Jenkins window with a red border indicating the option to install suggested plugins\" class=\"wp-image-59912\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins.png\/w=716,fit=scale-down 716w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><\/a><\/figure><\/div><p>Give it a couple of minutes for the installation process to complete. Once it&rsquo;s done, specify your username, password, full name, and email address, and click on <strong>Save and Continue<\/strong> to create an admin user.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button.png\"><img decoding=\"async\" width=\"749\" height=\"457\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button.png\/public\" alt=\"Creating the first administrative user for Jenkins with a red border indicating the Save and Continue button\" class=\"wp-image-59913\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button.png\/w=749,fit=scale-down 749w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/a><\/figure><\/div><p>Then specify the preferred <strong>Jenkins<\/strong> <strong>URL <\/strong>and finish the configuration process.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png\"><img decoding=\"async\" width=\"811\" height=\"255\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png\/public\" alt=\"Instance configuration to determine the main Jenkins server URL\" class=\"wp-image-59914\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png\/w=811,fit=scale-down 811w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/a><\/figure><\/div><p>After configuration, the Jenkins dashboard will appear, meaning the Jenkins server installation and initial setup were successful.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup.png\"><img decoding=\"async\" width=\"769\" height=\"394\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup.png\/public\" alt=\"Jenkins dashboard as shown after the initial setup\" class=\"wp-image-59915\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup.png\/w=769,fit=scale-down 769w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Jenkins is a popular tool for automating software development. With its intuitive interface and flexible framework, users can deploy their applications to production environments much more quickly.<\/p><p>This tutorial demonstrated the installation and initial configuration of Jenkins on Ubuntu 22.04.<\/p><p>We hope you found this tutorial useful in learning about Jenkins installation. Please leave any questions or suggestions in the comments section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Typically, software development presents its own set of challenges. One of them is ensuring that software is built, tested, and [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/how-to-install-jenkins-on-ubuntu\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":71574,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Install Jenkins on Ubuntu","rank_math_description":"Jenkins is an incredibly powerful management tool that can take your workflow to the next level. Install Jenkins on Ubuntu Easily.","rank_math_focus_keyword":"install jenkins ubuntu","footnotes":""},"categories":[22646,22644],"tags":[],"class_list":["post-15921","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-jenkins-on-ubuntu","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-install-jenkins-on-ubuntu","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-install-jenkins-on-ubuntu\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-install-jenkins-on-ubuntu\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-install-jenkins-on-ubuntu","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-install-jenkins-on-ubuntu","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-install-jenkins-on-ubuntu","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-install-jenkins-on-ubuntu","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/15921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=15921"}],"version-history":[{"count":31,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/15921\/revisions"}],"predecessor-version":[{"id":139028,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/15921\/revisions\/139028"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/71574"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=15921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=15921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=15921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}