{"id":1096,"date":"2023-08-30T10:35:44","date_gmt":"2023-08-30T05:05:44","guid":{"rendered":"https:\/\/www.openwriteup.com\/?page_id=1096"},"modified":"2025-04-19T15:41:24","modified_gmt":"2025-04-19T10:11:24","slug":"setting-up-jenkins-master","status":"publish","type":"page","link":"https:\/\/www.openwriteup.com\/?page_id=1096","title":{"rendered":"Setting up Jenkins Master"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Youtube link<\/strong><\/span>: <span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/watch?v=LhLGy8yvugs&amp;list=PLwO9EbabNLzsaHgP1dUCkdLg2CxZoPXGR&amp;index=5\">Navigation for lab setup<\/a><\/span><\/p>\n<p>Setup\u00a0 Jenkins Master<\/p>\n<pre>#updating the system\r\nsudo apt-get update -y<\/pre>\n<p><a href=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1097\" src=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins1-300x19.jpg\" alt=\"\" width=\"300\" height=\"19\" srcset=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins1-300x19.jpg 300w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins1-700x44.jpg 700w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins1-768x48.jpg 768w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins1.jpg 913w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Incase it prompts, please press ok using keyboard<\/p>\n<p><a href=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1102\" src=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins4-300x177.png\" alt=\"\" width=\"300\" height=\"177\" srcset=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins4-300x177.png 300w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins4-700x414.png 700w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins4-768x454.png 768w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins4.png 1012w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>. Install the applications: wget, unzip and java (openjdk-11-jdk)<\/p>\n<pre>apt-get install -y wget unzip openjdk-17-jdk<\/pre>\n<p>This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system:<\/p>\n<pre class=\"rouge highlight nowrap\"><code data-lang=\"bash\"><span class=\"nb\">sudo <\/span>wget <span class=\"nt\">-O<\/span> \/usr\/share\/keyrings\/jenkins-keyring.asc <span class=\"se\">\\<\/span>\r\n  https:\/\/pkg.jenkins.io\/debian-stable\/jenkins.io-2023.key<\/code><\/pre>\n<p>Then add a Jenkins apt repository entry:<\/p>\n<pre class=\"rouge highlight nowrap\"><code data-lang=\"bash\"><span class=\"nb\">echo <\/span>deb <span class=\"o\">[<\/span>signed-by<span class=\"o\">=<\/span>\/usr\/share\/keyrings\/jenkins-keyring.asc] <span class=\"se\">\\<\/span>\r\n  https:\/\/pkg.jenkins.io\/debian-stable binary\/ | <span class=\"nb\">sudo tee<\/span> <span class=\"se\">\\<\/span>\r\n  \/etc\/apt\/sources.list.d\/jenkins.list <span class=\"o\">&gt;<\/span> \/dev\/null<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>Update your local package index, then finally install Jenkins:<\/p>\n<pre class=\"text-white bg-dark\"><code>\r\n  sudo apt-get update\r\n  sudo apt-get install jenkins\r\n  systemctl status jenkins\r\n   <\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>note down the initial password<\/p>\n<pre> cat \/var\/lib\/jenkins\/secrets\/initialAdminPassword<\/pre>\n<p>Open a web browser to log into the Jenkins interface. Use the Jenkins Master IP Address, port 8080 :example\u00a0 http:\/\/192.168.40.131:8080<\/p>\n<p><a href=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1100\" src=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins2-300x190.png\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins2-300x190.png 300w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins2.png 606w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>. Click &#8216;Install Suggested Plugins<\/p>\n<p><a href=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1101\" src=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins3-300x150.png\" alt=\"\" width=\"300\" height=\"150\" srcset=\"https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins3-300x150.png 300w, https:\/\/www.openwriteup.com\/wp-content\/uploads\/2023\/08\/jenkins3.png 583w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>When prompted, create a new user using:<\/p>\n<pre>username: admin\r\npassword: pass@word1\r\nThe email address you use for this user is irrelevant (you can use 'admin@localhost'<\/pre>\n<p>Done with setup<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Youtube link: Navigation for lab setup Setup\u00a0 Jenkins Master #updating the system sudo apt-get update -y Incase it prompts, please press ok using keyboard . Install the applications: wget, unzip and java (openjdk-11-jdk) apt-get install -y wget unzip openjdk-17-jdk This is the Debian package repository of Jenkins to automate installation and upgrade. To use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_oct_exclude_from_cache":false,"footnotes":""},"class_list":["post-1096","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages\/1096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1096"}],"version-history":[{"count":10,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages\/1096\/revisions"}],"predecessor-version":[{"id":1542,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages\/1096\/revisions\/1542"}],"wp:attachment":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}