{"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":"2025-04-28T07:58:35","modified_gmt":"2025-04-28T07:58:35","slug":"how-to-install-jenkins-on-ubuntu","status":"publish","type":"post","link":"\/uk\/tutorials\/how-to-install-jenkins-on-ubuntu\/","title":{"rendered":"How to Install Jenkins on Ubuntu in 2026"},"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\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/11\/Linux-cheat-sheet.png 2048w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/11\/Linux-cheat-sheet-300x83.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/11\/Linux-cheat-sheet-1536x425.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/11\/Linux-cheat-sheet-150x41.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/11\/Linux-cheat-sheet-768x212.png 768w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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 href=\"\/uk\/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\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/VPS-hosting-banner.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/VPS-hosting-banner-300x88.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/VPS-hosting-banner-150x44.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/02\/VPS-hosting-banner-768x225.png 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=\"\/uk\/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=\"\/uk\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface.png 798w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface-300x33.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface-150x16.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/iChecking-the-Java-version-in-the-command-line-interface-768x84.png 768w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><\/a><\/figure>\n<\/div><p>\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Sugested Reading                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Check out our guide to learn<a href=\"\/uk\/tutorials\/install-java-ubuntu\/\"> how to install Java on Ubuntu<\/a>.<\/p>\n                    <\/div>\n        \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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system.png 843w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system-300x68.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system-150x34.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Checking-if-Jenkins-service-is-running-on-Ubuntu-20.04-system-768x175.png 768w\" sizes=\"(max-width: 843px) 100vw, 843px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/ufw-firewall-status-for-Ubuntu.png 476w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/ufw-firewall-status-for-Ubuntu-300x91.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/ufw-firewall-status-for-Ubuntu-150x46.png 150w\" sizes=\"(max-width: 476px) 100vw, 476px\" \/><\/a><\/figure>\n<\/div><p>\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro Tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\">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\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\":\"6a589f1d4a64b\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a589f1d4a64b\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/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\/51\/2019\/03\/hpanel-vps-firewall-sidebar.png\/w=482,fit=scale-down 482w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/2019\/03\/hpanel-vps-firewall-sidebar.png\/w=149,fit=scale-down 149w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/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--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>\n<\/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\/uk\/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\/w=1024,h=1024,fit=scale-down\" alt=\"The process of creating a new firewall rules on hPanel\" class=\"wp-image-90699\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2016\/09\/hpanel-vps-firewall-configuration.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2016\/09\/hpanel-vps-firewall-configuration-300x136.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2016\/09\/hpanel-vps-firewall-configuration-150x68.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2016\/09\/hpanel-vps-firewall-configuration-768x349.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n<\/div><p>Once finished, remember to click the <strong>toggle<\/strong> on your new firewall configuration to activate it. <\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/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 950w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port-300x178.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port-150x89.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/A-web-browser-window-for-the-initial-setup-of-Jenkins.-The-red-border-shows-an-example-IP-address-with-an-8080-port-768x455.png 768w\" sizes=\"(max-width: 950px) 100vw, 950px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button.png 906w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button-300x168.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button-150x84.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Administrator-password-field-for-unlocking-Jenkins-with-a-red-border-indicating-the-Continue-button-768x430.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins.png 716w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins-300x205.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/The-Customize-Jenkins-window-with-a-red-border-indicating-the-option-to-install-suggested-plugins-150x103.png 150w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button.png 749w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button-300x183.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Creating-the-first-administrative-user-for-Jenkins-with-a-red-border-indicating-the-Save-and-Continue-button-150x92.png 150w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL.png 811w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL-300x94.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL-150x47.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Instance-configuration-to-determine-the-main-Jenkins-server-URL-768x241.png 768w\" sizes=\"(max-width: 811px) 100vw, 811px\" \/><\/a><\/figure>\n<\/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=\"\/uk\/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:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup.png 769w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup-300x154.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/03\/Jenkins-dashboard-as-shown-after-the-initial-setup-150x77.png 150w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/a><\/figure>\n<\/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 deployed in a timely manner and that any errors are fixed prior to the production phase. Jenkins is an open-source automation server for continuous integration (CI) and continuous delivery (CD) models. In other words, it [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/uk\/tutorials\/how-to-install-jenkins-on-ubuntu\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":71574,"comment_status":"open","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":[22642,22640],"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-GB","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\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/15921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/comments?post=15921"}],"version-history":[{"count":29,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/15921\/revisions"}],"predecessor-version":[{"id":125834,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/15921\/revisions\/125834"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media\/71574"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media?parent=15921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/categories?post=15921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/tags?post=15921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}