{"id":2071,"date":"2023-06-02T12:57:56","date_gmt":"2023-06-02T04:57:56","guid":{"rendered":"https:\/\/www.yusian.com\/blog\/?p=2071"},"modified":"2023-06-02T13:01:34","modified_gmt":"2023-06-02T05:01:34","slug":"how-to-update-jenkins-in-docker-container","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/centos\/2023\/06\/02\/1257562071.html","title":{"rendered":"How to update Jenkins in docker container"},"content":{"rendered":"<h2>1. Download war package<\/h2>\n<pre><code class=\"language-txt line-numbers\">https:\/\/mirror.xmission.com\/jenkins\/war-stable\/\n<\/code><\/pre>\n<ul>\n<li>Select your target version and download war file, or copy the download url to get package by wget tool in your docker container.<\/li>\n<\/ul>\n<h2>2. Update<\/h2>\n<ul>\n<li>Just copy package to path <code>\/usr\/share\/jenkins<\/code> inside docker container.<\/li>\n<\/ul>\n<h2>3. Restart docker container<\/h2>\n<pre><code class=\"language-command line-numbers\">sudo docker restart jenkins_container_name\n<\/code><\/pre>\n<ul>\n<li>Complete!<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>1. Download war package https:\/\/mirror.xmission.com\/jenkins\/war-stable\/ Select your target version and download war file, or copy the download url to get package by wget tool in your docker container. 2. Update Just copy package to path \/usr\/share\/jenkins inside docker container. 3. Restart docker container sudo docker restart jenkins_container_name Complete!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,386],"tags":[346,403,384],"class_list":["post-2071","post","type-post","status-publish","format-standard","hentry","category-centos","category-ubuntu","tag-docker","tag-jenkins","tag-update"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/2071","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=2071"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/2071\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=2071"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=2071"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=2071"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}