{"id":1614,"date":"2020-03-05T15:00:35","date_gmt":"2020-03-05T12:00:35","guid":{"rendered":"https:\/\/artem.services\/?p=1612"},"modified":"2020-03-31T20:15:16","modified_gmt":"2020-03-31T17:15:16","slug":"1614","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=1614&lang=en","title":{"rendered":"CentOS 7 &#8212; Jenkins install"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"aligncenter size-full wp-image-819\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/Jenkins-Logo.png\" alt=\"\" width=\"1280\" height=\"412\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/Jenkins-Logo.png 1280w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/Jenkins-Logo-300x97.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/Jenkins-Logo-768x247.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/Jenkins-Logo-1024x330.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/02\/Jenkins-Logo-954x307.png 954w\" sizes=\"(max-width: 1280px) 100vw, 1280px\" \/><\/p>\n<p>Install <strong>Java OpenJDK<\/strong>, as it is a dependency for <strong>Jenkins<\/strong>. The latest versions of <strong>Jenkins<\/strong> are compatible with version <strong>11<\/strong>, so let&#8217;s install it.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo yum install -y java-11-openjdk\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>To add the <strong>Jenkins<\/strong> repository, you will need the &quot;<strong>wget<\/strong>&quot; utility, if it is not installed, then install:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo yum install -y wget\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Add the repository and import its key:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo wget -O \/etc\/yum.repos.d\/jenkins.repo https:\/\/pkg.jenkins.io\/redhat-stable\/jenkins.repo\r\nsudo rpm --import https:\/\/pkg.jenkins.io\/redhat-stable\/jenkins.io.key\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Install <strong>Jenkins<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo yum install -y jenkins\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Start <strong>Jenkins<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo systemctl start jenkins\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Check the status of the service:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo systemctl status jenkins\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>If all is well, add to autorun:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsudo systemctl enable jenkins\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>To continue the installation, you need to go to the &quot;<strong>8080<\/strong>&quot; port on the server <strong>IP address<\/strong> in the browser<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Java OpenJDK, as it is a dependency for Jenkins. The latest versions of Jenkins are compatible with version 11, so let&#8217;s install it. &nbsp; To add the Jenkins repository, you will need the &quot;wget&quot; utility, if it is not installed, then install: &nbsp; Add the repository and import its key: &nbsp; Install Jenkins: &nbsp; &hellip; <a href=\"https:\/\/artem.services\/?p=1614&#038;lang=en\" class=\"more-link\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c<span class=\"screen-reader-text\"> &quot;CentOS 7 &#8212; Jenkins install&quot;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[613],"tags":[855,1261,617],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1614"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1614"}],"version-history":[{"count":3,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1614\/revisions"}],"predecessor-version":[{"id":1780,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/1614\/revisions\/1780"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}