{"id":937,"date":"2019-10-24T13:42:05","date_gmt":"2019-10-24T18:42:05","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=937"},"modified":"2019-10-24T13:42:05","modified_gmt":"2019-10-24T18:42:05","slug":"how-to-install-jenkins-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/","title":{"rendered":"How to Install Jenkins on Ubuntu 18.04"},"content":{"rendered":"<div id=\"linux-1170701296\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>In this article, we will show you how to install Jenkins on Ubuntu 18.04.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-948\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/setting-up-jenkins-automation-on-ubuntu18.04-vps.jpg\" alt=\"\" width=\"140\" height=\"140\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/setting-up-jenkins-automation-on-ubuntu18.04-vps.jpg 140w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/setting-up-jenkins-automation-on-ubuntu18.04-vps-60x60.jpg 60w\" sizes=\"(max-width: 140px) 100vw, 140px\" \/>Jenkins is an open-source automation server written in Java. In a nutshell, this software helps to automate the repetitive technical tasks during the software development process. Jenkins can provide you with many plugins to support building, deploying and automating any project.<\/p>\n<p>Jenkins can be installed on Windows, macOS and on most of the Unix-like operating systems, such as Ubuntu. Let&#8217;s get started with installing this useful piece of software.<\/p>\n<p><!--more--><\/p>\n<h2>Prerequisites:<\/h2>\n<p>In order to follow this tutorial, you will need:<\/p>\n<ul>\n<li>For the purposes of this tutorial, we will be using an Ubuntu 18.04 VPS.<\/li>\n<li>Full SSH root access (or a user with sudo privileges) is also required.<\/li>\n<li>Web server (in this tutorial we will use Apache2 as the web server)<\/li>\n<\/ul>\n<h2>Step 1. Connect to Your Server<\/h2>\n<p>Before we begin, you need to connect to your server via SSH as the root user. To do this, use the following command:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_ADDRESS<\/span> -p <span style=\"color: #ff0000;\">PORT_NUMBER<\/span><\/pre>\n<p>of course, you will need to replace <strong><span style=\"color: #ff0000;\">IP_ADDRESS<\/span>\u00a0<\/strong>and <span style=\"color: #ff0000;\"><strong>PORT_NUMBER\u00a0<\/strong><\/span>with your actual server IP address and SSH port number (if necessary).<\/p>\n<p>Once logged in, make sure that your server is up-to-date by running the following commands:<\/p>\n<pre>sudo apt update\r\nsudo apt upgrade<\/pre>\n<h2>Step 2. Install Java<\/h2>\n<p>Since Jenkins is based on Java, we need to have installed Java in order to run the application. In this step, we will install <strong>Java 8 OpenJDK<\/strong>by using the following command:<\/p>\n<pre>sudo apt install openjdk-8-jdk<\/pre>\n<p>The current Jenkins version might not be fully compatible with the higher versions of Java JDK (for example Java JDK 9,10 or 11). That&#8217;s why we are using Java 8 in this tutorial.<\/p>\n<h2>Step 3. Add Jenkins Repository<\/h2>\n<p>By using the <a href=\"https:\/\/www.rosehosting.com\/blog\/wget-command-examples\/\" target=\"_blank\" rel=\"noopener noreferrer\">wget\u00a0command<\/a>, we will import the GPG keys of the Jenkins repository:<\/p>\n<pre>wget -q -O - https:\/\/pkg.jenkins.io\/debian\/jenkins.io.key | sudo apt-key add -<\/pre>\n<p>When we execute the command above, we should receive the output &#8220;OK&#8221;, which means that the key has been imported successfully &#8211; all of the packages from this repository are considered as trusted from now on.<\/p>\n<p>And now with the following command, we will add the Jenkins repository to the system:<\/p>\n<pre>sudo sh -c 'echo deb http:\/\/pkg.jenkins.io\/debian-stable binary\/ &gt; \/etc\/apt\/sources.list.d\/jenkins.list'<\/pre>\n<h2>Step 4. Install Jenkins<\/h2>\n<p>Once the previous step is finished and we have enabled the Jenkins repository in our system, we can proceed with the updating of the apt package list and install the latest version of Jenkins:<\/p>\n<pre>sudo apt update\r\nsudo apt install jenkins<\/pre>\n<p>After the installation is completed, the application will automatically start. To verify that Jenkins is running on our system, we can run the status command:<\/p>\n<pre>sudo\u00a0systemctl status jenkins<\/pre>\n<p>We should see a similar output to this:<\/p>\n<pre>\u25cf jenkins.service - LSB: Start Jenkins at boot time\r\nLoaded: loaded (\/etc\/init.d\/jenkins; generated)\r\nActive: active (exited) since Sun 2019-02-10 16:55:11 CST; 59s ago\r\nDocs: man:systemd-sysv-generator(8)\r\nProcess: 1389 ExecStop=\/etc\/init.d\/jenkins stop (code=exited, status=0\/SUCCESS)\r\nProcess: 1445 ExecStart=\/etc\/init.d\/jenkins start (code=exited, status=0\/SUCCESS)<\/pre>\n<h2>Step 5. Setting up an Apache Proxy<\/h2>\n<p>In this tutorial, we will use Apache as a web server. Apache is an extremely popular and customizable web server, so setting it up will be very straightforward. We&#8217;re going to assume that you have already installed Apache on your server. If you&#8217;re not sure if you have Apache installed, you can check the Apache status with the command:<\/p>\n<pre>sudo systemctl status apache2<\/pre>\n<p>we can also disable the default virtual host with:<\/p>\n<pre>sudo a2dissite 000-default<\/pre>\n<p>Now we will create a new virtual host configuration file so that we can access the Jenkins application with a domain name.<\/p>\n<pre>sudo nano \/etc\/apache2\/sites-available\/<span style=\"color: #ff0000;\">domain_name<\/span>.conf<\/pre>\n<p>add the following content to the file:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\n    ServerAdmin webmaster@localhost\r\n    ServerName <span style=\"color: #ff0000;\">domain_name.com<\/span>\r\n    ServerAlias www.<span style=\"color: #ff0000;\">domain_name.com<\/span>\r\n    ProxyRequests Off\r\n    &lt;Proxy *&gt;\r\n        Order deny,allow\r\n        Allow from all\r\n    &lt;\/Proxy&gt;\r\n    ProxyPreserveHost on\r\n    ProxyPass \/ http:\/\/localhost:8080\/ nocanon\r\n    AllowEncodedSlashes NoDecode\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>of course, you will need to replace <span style=\"color: #ff0000;\">domain_name.com<\/span> with your actual registered domain name. When you finish with editing the configuration file, save the file and exit.<\/p>\n<p>Please do not forget that the following Apache modules must be installed and enabled:<\/p>\n<pre>a2enmod proxy\r\na2enmod proxy_http\r\na2enmod headers<\/pre>\n<p>In order to enable the virtual host we have just created, run the a2ensite command:<\/p>\n<pre>sudo a2ensite domain_name<\/pre>\n<p>For the changes we made to take effect, we need to restart Apache:<\/p>\n<pre>sudo apache2ctl restart<\/pre>\n<h2>Step 6. Adjusting the Firewall<\/h2>\n<p>If you are using a firewall, you will need to open ports 80,443 and 8080 so you will be able to access Jenkins. We will assume that you are using UFW to manage the firewall, so you can open the ports with the commands below:<\/p>\n<pre>sudo ufw allow 80\r\nsudo ufw allow 443\r\nsudo ufw allow 8080<\/pre>\n<p>We can verify the changes with the following command:<\/p>\n<pre>sudo ufw status<\/pre>\n<p>Output:<\/p>\n<pre>Status: active\r\n\r\nTo                         Action      From\r\n--                         ------      ----\r\n80                         ALLOW       Anywhere\r\n443                        ALLOW       Anywhere\r\n8080                       ALLOW       Anywhere\r\nOpenSSH                    ALLOW       Anywhere\r\n80 (v6)                    ALLOW       Anywhere (v6)\r\n443 (v6)                   ALLOW       Anywhere (v6)\r\n8080 (v6)                  ALLOW       Anywhere (v6)\r\nOpenSSH (v6)               ALLOW       Anywhere (v6)\r\n<\/pre>\n<h2>Step 7. Setting up Jenkins<\/h2>\n<p>To finish the installation of Jenkins, you need to open your favorite browser and type your domain name or your server IP address followed by port 8080.<\/p>\n<p>For example, http:\/\/<span style=\"color: #ff0000;\">domain_name.com<\/span> or http:\/\/<span style=\"color: #ff0000;\">server_IP_address<\/span>:8080 and you should see a screen that is similar to the following:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-939\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Sign-in-Jenkins.png\" alt=\"\" width=\"1033\" height=\"954\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Sign-in-Jenkins.png 1033w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Sign-in-Jenkins-300x277.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Sign-in-Jenkins-768x709.png 768w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Sign-in-Jenkins-1024x946.png 1024w\" sizes=\"(max-width: 1033px) 100vw, 1033px\" \/><\/p>\n<p>The Jenkins installer creates an initial long alphanumeric password with a length of 32 characters. To unlock Jenkins and continue with the web installation, you need to set up the required admin password. We will use the cat command so that we can display the password in our terminal:<\/p>\n<pre>sudo cat \/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/pre>\n<p>Copy the displayed password from your terminal and paste it into the Administrator password field in the web browser, then click <strong>Continue<\/strong>.<\/p>\n<p>On the next screen, you can choose between the options of installing suggested plugins or selecting specific plugins:<\/p>\n<figure id=\"attachment_940\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 1059px\"><img decoding=\"async\" class=\"size-full wp-image-940\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Customize-Jenkins.png\" alt=\"\" width=\"1049\" height=\"954\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Customize-Jenkins.png 1049w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Customize-Jenkins-300x273.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Customize-Jenkins-768x698.png 768w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Customize-Jenkins-1024x931.png 1024w\" sizes=\"(max-width: 1049px) 100vw, 1049px\" \/><figcaption class=\"caption wp-caption-text\">Customizing Jenkins<\/figcaption><\/figure>\n<p>In this case, we will select the first option offered, but if you need specific plugins, you can freely choose the second option offered.<\/p>\n<p>Once the installation is complete, you will be prompted to set up the first admin user. Fill out all the information required and click <strong>Save and Continue<\/strong>.<\/p>\n<figure id=\"attachment_942\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 1046px\"><img decoding=\"async\" class=\"size-full wp-image-942\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Create-First-Admin-User.png\" alt=\"\" width=\"1036\" height=\"956\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Create-First-Admin-User.png 1036w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Create-First-Admin-User-300x277.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Create-First-Admin-User-768x709.png 768w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Create-First-Admin-User-1024x945.png 1024w\" sizes=\"(max-width: 1036px) 100vw, 1036px\" \/><figcaption class=\"caption wp-caption-text\">Creating the First Admin User<\/figcaption><\/figure>\n<p>On the next screen, you will see an Instance Configuration page. You will need to verify with your <span style=\"color: #ff0000;\">domain_name.com<\/span> or with the IP address of your server.<\/p>\n<figure id=\"attachment_943\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 1071px\"><img decoding=\"async\" class=\"size-full wp-image-943\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Instance-Configuration.png\" alt=\"\" width=\"1061\" height=\"956\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Instance-Configuration.png 1061w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Instance-Configuration-300x270.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Instance-Configuration-768x692.png 768w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Instance-Configuration-1024x923.png 1024w\" sizes=\"(max-width: 1061px) 100vw, 1061px\" \/><figcaption class=\"caption wp-caption-text\">Configuring the Instance<\/figcaption><\/figure>\n<p>After your confirmation with appropriate information, you can continue by clicking the <strong>Save and Finish\u00a0<\/strong>button. Finally, you should be able to see the confirmation page that is confirming that &#8220;Jenkins is ready!&#8221;.<\/p>\n<figure id=\"attachment_944\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 1060px\"><img decoding=\"async\" class=\"size-full wp-image-944\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Jenkins-is-ready.png\" alt=\"\" width=\"1050\" height=\"956\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Jenkins-is-ready.png 1050w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Jenkins-is-ready-300x273.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Jenkins-is-ready-768x699.png 768w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Jenkins-is-ready-1024x932.png 1024w\" sizes=\"(max-width: 1050px) 100vw, 1050px\" \/><figcaption class=\"caption wp-caption-text\">Jenkins is now Ready<\/figcaption><\/figure>\n<p>When you proceed with &#8216;Start using Jenkins&#8217;, you will be redirected to the Jenkins dashboard, and you will also be logged in as the administrator user you just created.<\/p>\n<figure id=\"attachment_945\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 1930px\"><img decoding=\"async\" class=\"size-full wp-image-945\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Dashboard-Jenkins.png\" alt=\"\" width=\"1920\" height=\"954\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Dashboard-Jenkins.png 1920w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Dashboard-Jenkins-300x149.png 300w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Dashboard-Jenkins-768x382.png 768w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/Dashboard-Jenkins-1024x509.png 1024w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" \/><figcaption class=\"caption wp-caption-text\">The Jenkins Dashboard<\/figcaption><\/figure>\n<p>Congratulations! You have successfully installed Jenkins on your server.<\/p>\n<p>In this article, we showed you how to install Java needed to run Jenkins, install Jenkins using the packages provided by the repository, set up an Apache Proxy, customize the firewall, and create an admin user. Now you can continue exploring this incredible application.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-949\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/get-expert-help-from-admins-for-setup-configuration-install-jenkins-on-ubuntu-vps.jpg\" alt=\"\" width=\"140\" height=\"140\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/get-expert-help-from-admins-for-setup-configuration-install-jenkins-on-ubuntu-vps.jpg 140w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/get-expert-help-from-admins-for-setup-configuration-install-jenkins-on-ubuntu-vps-60x60.jpg 60w\" sizes=\"(max-width: 140px) 100vw, 140px\" \/>Of course, if you are one of our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Managed Linux Server Support<\/a> customers, you don\u2019t have to install Jenkins on your Ubuntu 18.04 VPS \u2013 simply ask our admins, sit back, and relax. Our admins will install Jenkins on Ubuntu 18.04 for you immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post about how to install Jenkins on an Ubuntu 18.04 VPS, please share it with your friends on the social networks using the share shortcuts, or simply leave a comment in the comments section. Thank you.<\/p><div id=\"linux-2138095530\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this software helps to automate the repetitive technical tasks during the software development process. Jenkins can provide you with many plugins to support building, deploying and automating any project. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":947,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Jenkins on Ubuntu 18.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Jenkins on Ubuntu 18.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-24T18:42:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-jenkins-on-ubuntu18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Jenkins on Ubuntu 18.04\",\"datePublished\":\"2019-10-24T18:42:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/\"},\"wordCount\":1113,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-jenkins-on-ubuntu18.04.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Jenkins on Ubuntu 18.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-jenkins-on-ubuntu18.04.jpg\",\"datePublished\":\"2019-10-24T18:42:05+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-jenkins-on-ubuntu18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/10\\\/how-to-install-jenkins-on-ubuntu18.04.jpg\",\"width\":750,\"height\":410},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-jenkins-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Jenkins on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Jenkins on Ubuntu 18.04 | LinuxHostSupport","description":"In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Jenkins on Ubuntu 18.04 | LinuxHostSupport","og_description":"In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-10-24T18:42:05+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-jenkins-on-ubuntu18.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Jenkins on Ubuntu 18.04","datePublished":"2019-10-24T18:42:05+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/"},"wordCount":1113,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-jenkins-on-ubuntu18.04.jpg","articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/","name":"How to Install Jenkins on Ubuntu 18.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-jenkins-on-ubuntu18.04.jpg","datePublished":"2019-10-24T18:42:05+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this article, we will show you how to install Jenkins on Ubuntu 18.04. Jenkins is an open-source automation server written in Java. In a nutshell, this","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-jenkins-on-ubuntu18.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/10\/how-to-install-jenkins-on-ubuntu18.04.jpg","width":750,"height":410},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-jenkins-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Jenkins on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=937"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/937\/revisions"}],"predecessor-version":[{"id":1479,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/937\/revisions\/1479"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/947"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}