{"id":1340,"date":"2023-03-19T09:06:34","date_gmt":"2023-03-19T01:06:34","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1340"},"modified":"2023-04-29T09:07:03","modified_gmt":"2023-04-29T01:07:03","slug":"jenkins-construct-task-considerations","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/jenkins-construct-task-considerations\/","title":{"rendered":"Jenkins\u6784\u5efa\u4efb\u52a1\u6ce8\u610f\u4e8b\u9879"},"content":{"rendered":"<h2>\u8bbe\u7f6e\u51ed\u636e<\/h2>\n<p>\u9884\u6dfb\u52a0\u51ed\u636e\uff0c\u5982\u7528\u4e8eGithub\u3001Gitlab\u7b49\u767b\u5f55\u7684\u8d26\u53f7\u5bc6\u7801<\/p>\n<p>\u8def\u5f84\uff1aJenkins -&gt; \u51ed\u636e -&gt; \u7cfb\u7edf -&gt; \u5168\u5c40\u51ed\u636e (unrestricted) -&gt; \u6dfb\u52a0\u51ed\u636e<\/p>\n<p><!-- more --><\/p>\n<ul>\n<li>\u7c7b\u578b\uff1aUsername with password<\/li>\n<li>\u8303\u56f4\uff1a\u5168\u5c40<\/li>\n<\/ul>\n<h2>\u5185\u5b58\u4e0d\u8db3\u5bfc\u81f4\u7f16\u8bd1\u5931\u8d25<\/h2>\n<p>\u89e3\u51b3\u65b9\u6848\uff1a\u914d\u7f6eSWAP\u4ea4\u6362\u5206\u533a<\/p>\n<p>\uff081\uff09\u9996\u5148\u5efa\u7acb\u4e00\u4e2a2GB\u7684\u4ea4\u6362\u6587\u4ef6<\/p>\n<pre><code># sudo dd if=\/dev\/zero of=\/swap bs=1024 count=2048k<\/code><\/pre>\n<p>\uff082\uff09\u7136\u540e\u8bbe\u7f6e\u5e76\u5f00\u542f\u4ea4\u6362\u6587\u4ef6<\/p>\n<pre><code># sudo mkswap \/swap\n# sudo swapon \/swap<\/code><\/pre>\n<p>\uff083\uff09\u6700\u540e\u8bbe\u7f6e\u5f00\u673a\u81ea\u52a8\u88c5\u8f7dswap\u5206\u533a<\/p>\n<pre><code># echo &#039;&#039;\/swap none swap defaults 0 0&#039;&#039; &gt;&gt; \/etc\/fstab\n# free -m  \/\/\u67e5\u770b\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\n# swapon -s  \/\/\u67e5\u770bswap\u4fe1\u606f<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u8bbe\u7f6e\u51ed\u636e \u9884\u6dfb\u52a0\u51ed\u636e\uff0c\u5982\u7528\u4e8eGithub\u3001Gitlab\u7b49\u767b\u5f55\u7684\u8d26\u53f7\u5bc6\u7801 \u8def\u5f84\uff1aJenkins -&gt; \u51ed\u636e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[229],"tags":[],"class_list":["post-1340","post","type-post","status-publish","format-standard","hentry","category-jenkins"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1340"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1340\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}