{"id":864,"date":"2019-02-28T19:04:50","date_gmt":"2019-02-28T16:04:50","guid":{"rendered":"https:\/\/artem.services\/?p=813"},"modified":"2019-03-12T17:18:21","modified_gmt":"2019-03-12T14:18:21","slug":"jenkins-d0-bf-d1-80-d0-b8-d0-bd-d1-83-d0-b4-d0-b8-d1-d0-b5-d0-bb-8c-b7-d0-b0-d0-b4-d0-b0-d1-82-d1-8c-d0-bd-d0-be-d0-bc-d0-b5-d1-80-d1-81-d0-b1-d0-be-d1-80-d0-ba-d0-b8","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=864&lang=en","title":{"rendered":"Jenkins &#8212; Forcibly set the build number"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-819 aligncenter\" 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><span class=\"tlid-translation translation\"><span title=\"\">In order to force the build number, go to the user&#8217;s home directory &quot;<strong>jenkins<\/strong>&quot; -&gt; &quot;<strong>jobs<\/strong>&quot; -&gt; &quot;<strong>Project_name<\/strong>&quot; -&gt; &quot;<strong>Branch_name<\/strong>&quot; and open the file &quot;<strong>nextBuildNumber<\/strong>&quot;.<\/span> <span class=\"\" title=\"\">And indicate in it the number of the next assembly.<\/span><\/p>\n<p><span class=\"\" title=\"\">After that, it is necessary for <strong>Jenkins<\/strong> to re-read the data from the disk, for this we go to the settings and find the item &quot;<strong>Reload configuration from disk<\/strong>&quot;<\/span><\/span><\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-816 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/03\/Jenkins-buildnumber.png\" alt=\"\" width=\"1167\" height=\"86\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2019\/03\/Jenkins-buildnumber.png 1167w, https:\/\/artem.services\/wp-content\/uploads\/2019\/03\/Jenkins-buildnumber-300x22.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2019\/03\/Jenkins-buildnumber-768x57.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2019\/03\/Jenkins-buildnumber-1024x75.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2019\/03\/Jenkins-buildnumber-954x70.png 954w\" sizes=\"(max-width: 1167px) 100vw, 1167px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to force the build number, go to the user&#8217;s home directory &quot;jenkins&quot; -&gt; &quot;jobs&quot; -&gt; &quot;Project_name&quot; -&gt; &quot;Branch_name&quot; and open the file &quot;nextBuildNumber&quot;. And indicate in it the number of the next assembly. After that, it is necessary for Jenkins to re-read the data from the disk, for this we go to the &hellip; <a href=\"https:\/\/artem.services\/?p=864&#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;Jenkins &#8212; Forcibly set the build number&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":[615,617,619],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/864"}],"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=864"}],"version-history":[{"count":2,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/864\/revisions"}],"predecessor-version":[{"id":867,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/864\/revisions\/867"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}