{"id":7647,"date":"2018-06-25T00:07:29","date_gmt":"2018-06-24T16:07:29","guid":{"rendered":"http:\/\/rmohan.com\/?p=7647"},"modified":"2018-06-25T00:07:29","modified_gmt":"2018-06-24T16:07:29","slug":"setup-and-run-jenkins","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7647","title":{"rendered":"Setup and Run Jenkins"},"content":{"rendered":"<h3 id=\"0cca\" class=\"graf graf--h3 graf-after--p\">Installing Jenkins:<\/h3>\n<p id=\"6779\" class=\"graf graf--p graf-after--h3\">Download latest or specific version you want to install from\u00a0<a class=\"markup--anchor markup--p-anchor\" href=\"https:\/\/updates.jenkins-ci.org\/download\/war\/\" target=\"_blank\" rel=\"noopener\" data-href=\"https:\/\/updates.jenkins-ci.org\/download\/war\/\">here.<\/a><\/p>\n<p id=\"ebc3\" class=\"graf graf--p graf-after--p\">For example:<\/p>\n<pre id=\"749c\" class=\"graf graf--pre graf-after--p\">$ wget https:\/\/updates.jenkins-ci.org\/download\/war\/2.123\/jenkins.war<\/pre>\n<h3 id=\"59ca\" class=\"graf graf--h3 graf-after--pre\">Starting Jenkins<\/h3>\n<p id=\"4a27\" class=\"graf graf--p graf-after--h3\">The easiest way to execute Jenkins is through the built in Jetty servlet container. You can execute Jenkins like this:<\/p>\n<p id=\"d403\" class=\"graf graf--p graf-after--p\"><code class=\"markup--code markup--p-code\">$ java -jar jenkins.war<\/code><\/p>\n<p id=\"3248\" class=\"graf graf--p graf-after--p\">Of course, you probably want to send the output of Jenkins to a log file, and if you\u2019re on Unix, you probably want to use\u00a0<code class=\"markup--code markup--p-code\"><strong class=\"markup--strong markup--p-strong\">nohup<\/strong><\/code>:<\/p>\n<p id=\"52e0\" class=\"graf graf--p graf-after--p\"><code class=\"markup--code markup--p-code\">$ nohup java -jar jenkins.war &gt; $LOGFILE 2&gt;&amp;1 &amp;<\/code><\/p>\n<h3 id=\"86c0\" class=\"graf graf--h3 graf-after--p\">Accessing Jenkins<\/h3>\n<p id=\"649e\" class=\"graf graf--p graf-after--h3 graf--trailing\">To see Jenkins, simply bring up a web browser and go to URL\u00a0<code class=\"markup--code markup--p-code\"><strong class=\"markup--strong markup--p-strong\">http:\/\/myServer:8080<\/strong><\/code>\u00a0where myServer is the name of the system running Jenkins.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Jenkins: <\/p>\n<p id=\"6779\" class=\"graf graf--p graf-after--h3\">Download latest or specific version you want to install from here.<\/p>\n<p id=\"ebc3\" class=\"graf graf--p graf-after--p\">For example:<\/p>\n<p> $ wget https:\/\/updates.jenkins-ci.org\/download\/war\/2.123\/jenkins.war Starting Jenkins <\/p>\n<p id=\"4a27\" class=\"graf graf--p graf-after--h3\">The easiest way to execute Jenkins is through the built in Jetty servlet container. You can execute Jenkins like this:<\/p>\n<p id=\"d403\" class=\"graf [...] \n\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7647"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7647"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7647\/revisions"}],"predecessor-version":[{"id":7648,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7647\/revisions\/7648"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}