{"id":398,"date":"2026-01-26T08:20:09","date_gmt":"2026-01-26T08:20:09","guid":{"rendered":"https:\/\/blog.gpst.net.cn:4008\/?p=398"},"modified":"2026-01-28T06:24:13","modified_gmt":"2026-01-28T06:24:13","slug":"jenkins%e8%bf%90%e7%bb%b4-%e7%a6%bb%e7%ba%bf%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=398","title":{"rendered":"jenkins\u8fd0\u7ef4\u2014\u2014\u79bb\u7ebf\u5b89\u88c5"},"content":{"rendered":"\n<p>1\u3001\u5b89\u88c5jdk11<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/www.oracle.com\/java\/technologies\/downloads\/archive\/\">\u4e0b\u8f7djdk11<\/a>\noracle\u767b\u5f55\u8d26\u53f7\uff1aeddy1365@163.com\n\u5bc6\u7801\uff1aAsdf*****\ntar zxf jdk-11.0.21_linux-x64_bin.tar.gz\nmv jdk-11.0.21 \/opt\/jdk\ncat &gt;&gt;\/etc\/profile &lt;&lt;EOF\nexport JAVA_HOME=\/opt\/jdk\nexport PATH=\/opt\/jdk\/bin:\\$PATH\nEOF\nsource \/etc\/profile<\/code><\/pre>\n\n\n\n<p>2\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5jenkins<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><a href=\"https:\/\/mirror.dst.ca\/jenkins\/war-stable\/2.440.2\/jenkins.war\">\u4e0b\u8f7djenkins<\/a>\u7684war\u5305\nmkdir \/opt\/jenkins\nmv jenkins.war \/opt\/jenkins\ncat &gt;\/lib\/systemd\/system\/jenkins.service &lt;&lt;EOF\n&#091;Unit]\nDescription=jenkins\nAfter=network.target\n&#091;Service]\nWorkingDirectory=\/opt\/jenkins\nExecStart=\/opt\/jdk\/bin\/java -Xms1024m -Xmx1024m -XX:PermSize=512M -XX:PermSize=1024M -jar \/opt\/jenkins\/jenkins.war --httpPort=18080\n&#091;Install]\nWantedBy=multi-user.target\nEOF\nsystemctl daemon-reload\nsystemctl enable --now jenkins\n\u7b2c\u4e00\u6b21\u8fd0\u884c\u4f1a\u4ea7\u751f\u4e00\u4e2aadmin\u7684\u5bc6\u94a5token\uff0c\u67e5\u770b\u4f4d\u7f6e\uff1a\n\/root\/.jenkins\/secrets\/initialAdminPassword\n\u8bb0\u4e0b\u6765\uff0c\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u586b\u5199\u7684\nTips\uff1a\n\u9650\u5236jenkins \u542f\u52a8\u5360\u7528\u5185\u5b58\n\/opt\/jdk\/bin\/java -Xms1024m -Xmx1024m -XX:PermSize=512M -XX:PermSize=1024M -jar \/opt\/jenkins\/jenkins.war --httpPort=18080\n\u8bbf\u95ee\uff1ahttp:\/\/&lt;ip&gt;:18080\n\u7b2c\u4e00\u6b21\u9700\u8981\u586b\u5199\u8fdb\u53bb\u4e0a\u9762\u8bb0\u5f55\u4e0b\u6765\u7684token\u89e3\u9501\uff0c\u901a\u8fc7\u5f15\u5bfc\u6b65\u9aa4\u5b8c\u6210\u521d\u59cb\u5316 tips\uff1a\u63d2\u4ef6\u8fd9\u4e2a\u6b65\u9aa4\uff0c\u9009\u62e9\u63d2\u4ef6\u6765\u5b89\u88c5\uff0c\u7136\u540e\u9009\u62e9\u201c\u65e0\u201d\u518d\u8fdb\u884c\u4e0b\u4e00\u6b65\u3002\n\n\n\u627e\u4e00\u53f0\u80fd\u8054\u7f51\u7684\u673a\u5668\uff0c\u5b89\u88c5Jenkins\uff0c\u5b89\u88c5\u63d2\u4ef6\uff0c\u7136\u540e\u5c06\u6574\u4e2a\/root\/.jenkins\u6253\u5305\uff0c\u4f20\u5230\u79bb\u7ebf\u73af\u5883\u670d\u52a1\u5668\u4e0a\u89e3\u538b\u540e\u518d\u542f\u52a8jenkins\u3002\n\u63d2\u4ef6\u5b89\u88c5\uff1aMaven Integration plugin\uff0c\u624d\u80fd\u652f\u6301\u6784\u5efamaven\u9879\u76ee\u3002\n\u4e0b\u8f7d\u63d2\u4ef6\uff1ahttps:\/\/mirrors.nju.edu.cn\/jenkins\/plugins\/publish-over-ssh\/1.25\/publish-over-ssh.hpi\n\u5b89\u88c5\u63d2\u4ef6\uff1a\n\u5728 Dashboard - Manage Jenkins - Plugins\nDeploy Plugin -&gt; File \u4e0a\u4f20\u63d2\u4ef6\u8fdb\u884c\u5b89\u88c5\n\u63d2\u4ef6\u5b89\u88c5\u8fc7\u7a0b\u4e2dhang\u4f4f\u7684\u7684\u5904\u7406\u529e\u6cd5\uff1aInstall after restart+\u5b89\u88c5\u5b8c\u6210\u540e\u91cd\u542fJenkins(\u7a7a\u95f2\u65f6)\n\n\n\u66f4\u6539\u63d2\u4ef6\u6e90\u4e3a\u56fd\u5185\u6e90\uff08\u52a0\u901f\uff09\nDashboard - Manage Jenkins - Plugins - Advanced settings\nUpdate Site - URL: \n\u9ed8\u8ba4\u662f\uff1ahttps:\/\/updates.jenkins.io\/update-center.json\n\u4fee\u6539\u4e3a\u4ee5\u4e0b\u4e4b\u4e00\uff1a\n\u5357\u4eac\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/mirrors.nju.edu.cn\/jenkins\/updates\/update-center.json\n\u6e05\u534e\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/mirrors.tuna.tsinghua.edu.cn\/jenkins\/updates\/update-center.json\n\u4e2d\u56fd\u79d1\u5b66\u6280\u672f\u5927\u5b66\u955c\u50cf\uff1ahttp:\/\/mirrors.ustc.edu.cn\/jenkins\/updates\/update-center.json\n\n\n\u5728 Dashboard - Manage Jenkins - Tools\u91cc\u8bbe\u7f6emaven\u3001git\u3001jdk\uff1a<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"431\" height=\"455\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-59.png\" alt=\"\" class=\"wp-image-399\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-59.png 431w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-59-284x300.png 284w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"462\" height=\"498\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-60.png\" alt=\"\" class=\"wp-image-400\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-60.png 462w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-60-278x300.png 278w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"468\" height=\"380\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-61.png\" alt=\"\" class=\"wp-image-401\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-61.png 468w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-61-300x244.png 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"337\" height=\"469\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-62.png\" alt=\"\" class=\"wp-image-402\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-62.png 337w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-62-216x300.png 216w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/figure>\n\n\n\n<p>\u7cfb\u7edf\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"473\" height=\"710\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-63.png\" alt=\"\" class=\"wp-image-403\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-63.png 473w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-63-200x300.png 200w\" sizes=\"auto, (max-width: 473px) 100vw, 473px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"824\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-64.png\" alt=\"\" class=\"wp-image-404\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-64.png 622w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-64-226x300.png 226w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n\n\n\n<p>maven\u9879\u76ee\u914d\u7f6e\u8fd9\u51e0\u4e2a\u5730\u65b9\uff1a<\/p>\n\n\n\n<p>\u4e00\u3001<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"418\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-65-1024x418.png\" alt=\"\" class=\"wp-image-405\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-65-1024x418.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-65-300x122.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-65-768x313.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-65.png 1415w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"157\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-66-1024x157.png\" alt=\"\" class=\"wp-image-406\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-66-1024x157.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-66-300x46.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-66-768x118.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-66.png 1291w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"400\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-67-1024x400.png\" alt=\"\" class=\"wp-image-407\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-67-1024x400.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-67-300x117.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-67-768x300.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-67.png 1271w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u8fd9\u91cc\uff0c\u6211\u4eec\u6d4f\u89c8\u5668\u76f4\u63a5\u8bbf\u95ee\uff1ahttp:\/\/210.14.75.1:9980\/job\/nhlrs-social-service-server\/build?token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY, \u901a\u8fc7\u89c2\u5bdf\u63a7\u5236\u53f0\u53d1\u73b0\u4f1a\u81ea\u52a8\u89e6\u53d1\u6784\u5efa\u4efb\u52a1\uff0c\u4f46\u662f\u6211\u4eec\u6362\u4e2a\u6d4f\u89c8\u5668\u6216\u8005\u7528postman\u7684\u8bdd\u4f1a\u63d0\u793a\u6211\u4eec\u9700\u8981\u767b\u5f55\u3002\u9700\u8981\u5b89\u88c5\u4e2a\u63d2\u4ef6\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u542f\u7528token\u4e4b\u540e\u514d\u767b\u5f55\u3002<\/p>\n\n\n\n<p>\u5728Jenkins\u5f97Plugin Manager\u7684\u53ef\u9009\u63d2\u4ef6\u4e2d\u641c\u7d22Build Authorization Token Root<\/p>\n\n\n\n<p>\u5b89\u88c5\u5b8c\u63d2\u4ef6\u4e4b\u540e\uff0c\u7528postman\u6d4b\u8bd5\uff1a<a href=\"http:\/\/210.14.75.1:18080\/buildByToken\/build?job=nhlrs-social-service-server&amp;token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY\">http:\/\/210.14.75.1:18080\/buildByToken\/build?job=nhlrs-social-service-server&amp;token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-68-1024x584.png\" alt=\"\" class=\"wp-image-408\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-68-1024x584.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-68-300x171.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-68-768x438.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-68.png 1109w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"314\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-69.png\" alt=\"\" class=\"wp-image-409\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-69.png 760w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-69-300x124.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<p>clean package -Dmaven.test.skip=true<\/p>\n\n\n\n<p>\u3010\u53ef\u9009\u3011\u52a0\u901f\u7684\u53c2\u6570\uff1a-T 1C -Dmaven.test.skip=true -nsu -B&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>\u53c2\u6570<\/td><td>\u542b\u4e49<\/td><td>\u662f\u5426\u63a8\u8350<\/td><\/tr><tr><td>-T 1C<\/td><td><strong>\u591a\u7ebf\u7a0b\u6784\u5efa<\/strong>\uff1a\u4f7f\u7528 CPU \u6838\u5fc3\u6570 \u00d7 1 \u4e2a\u7ebf\u7a0b<\/td><td>\u2705 \u5f3a\u70c8\u63a8\u8350\u52a0\u901f\u6784\u5efa<\/td><\/tr><tr><td>-Dmaven.test.skip=true<\/td><td><strong>\u8df3\u8fc7\u6d4b\u8bd5\u7684\u7f16\u8bd1\u548c\u6267\u884c<\/strong><\/td><td>\u2705 \u53ef\u5927\u5e45\u52a0\u5feb\u6784\u5efa\u901f\u5ea6<\/td><\/tr><tr><td>-nsu<\/td><td><strong>no-snapshot-updates<\/strong>\uff0c\u8df3\u8fc7 SNAPSHOT \u4f9d\u8d56\u7684\u8fdc\u7a0b\u68c0\u67e5\u66f4\u65b0<\/td><td>\u2705 \u53ef\u51cf\u5c11\u7f51\u7edc\u8bf7\u6c42<\/td><\/tr><tr><td>-B<\/td><td><strong>batch mode<\/strong>\uff1a\u975e\u4ea4\u4e92\u5f0f\u6a21\u5f0f\uff0c\u9002\u5408\u5728 CI\uff08Jenkins\uff09\u4e2d\u4f7f\u7528<\/td><td>\u2705 \u5fc5\u987b\u7528\u4e8e\u81ea\u52a8\u5316<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5982\u679c\u662f\u5fae\u670d\u52a1\uff0c\u8981\u7528\uff1aclean package -am -pl<strong>:ruoyi-gateway<\/strong>-Dmaven.test.skip=true<\/p>\n\n\n\n<p>clean package -am -pl :ruoyi-file -Dmaven.test.skip=true<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u547d\u4ee4\u662fMaven\u7684\u547d\u4ee4\u884c\u6307\u4ee4\uff0c\u7528\u4e8e\u6784\u5efa\u9879\u76ee\u3002<\/p>\n\n\n\n<p>\u89e3\u91ca\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>clean\uff1a\u8868\u793a\u6e05\u7406\u9879\u76ee\uff0c\u5220\u9664target\u76ee\u5f55\u3002<\/li>\n\n\n\n<li>package\uff1a\u8868\u793a\u6253\u5305\u9879\u76ee\uff0c\u751f\u6210jar\u6216\u8005war\u6587\u4ef6\u3002<\/li>\n\n\n\n<li>-am\uff1a\u8868\u793a\u4e5f\u6784\u5efa\u9879\u76ee\u6240\u4f9d\u8d56\u7684\u6a21\u5757\u3002<\/li>\n\n\n\n<li>-pl\uff1a\u8868\u793a\u6307\u5b9a\u6784\u5efa\u7684\u6a21\u5757\uff0c:ruoyi-file\u8868\u793a\u8981\u6784\u5efa\u7684\u6a21\u5757\u3002<\/li>\n\n\n\n<li>-Dmaven.test.skip=true\uff1a\u8868\u793a\u8df3\u8fc7\u6d4b\u8bd5\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\n#!\/bin\/bash\necho \"\u62f7\u8d1djar\u5305\u5230\u76ee\u6807\u670d\u52a1\u5668\u7684tmp\u76ee\u5f55\"\nscp -q -oStrictHostKeyChecking=no \/root\/.jenkins\/workspace\/nhlrs-social-service-server\/social-admin\/target\/social-admin.jar root@210.14.75.1:\/mnt\/nhlrs3\/nginx1.24\/html\/nhlrs\/admin\necho \"ssh\u8fdc\u7a0b\u8fde\u63a5\u8fdb\u884c\u53d1\u5e03\u64cd\u4f5c\"\nssh -q -oStrictHostKeyChecking=no root@210.14.75.1 &lt;&lt;EOF\ncd \/mnt\/nhlrs3\/nginx1.24\/html\/nhlrs\/admin\n\/bin\/bash .\/social-admin.sh\necho \"\u7b49\u5f85\u65e5\u5fd7\u8f93\u51fa(pause 13s)\"\nsleep 13\ncat .\/social-admin.log\nEOF<\/code><\/pre>\n\n\n\n<p>social-admin.sh<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\noldpid=`ps -ef |grep \"&#091;s]ocial-admin.jar\" |awk '{print $2}'`\nkill -9 $oldpid\nsleep 1\nnohup java -Xms128m -Xmx1024m -jar .\/social-admin.jar &amp;&gt;.\/social-admin.log &amp;\nsleep 1\nnewpid=`ps -ef |grep \"&#091;s]ocial-admin.jar\" |awk '{print $2}'`\necho\necho\necho \"$(date +'%D %T') pid: $oldpid -&gt; $newpid\"<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u662fnodejs\u9879\u76ee\u5982\u4f55\u6784\u5efa\u7684\u6b65\u9aa4<\/p>\n\n\n\n<p>1\u3001\u63d2\u4ef6\u5b89\u88c5nodejs<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"245\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-70-1024x245.png\" alt=\"\" class=\"wp-image-410\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-70-1024x245.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-70-300x72.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-70-768x184.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-70-1536x368.png 1536w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-70.png 1883w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>2\u3001\u672c\u5730\u7cfb\u7edf\u5b89\u88c5nodejs<\/p>\n\n\n\n<p>\u4e0b\u8f7d\uff1a<a href=\"https:\/\/mirrors.tuna.tsinghua.edu.cn\/nodejs-release\/v16.20.1\/?C=M&amp;O=D\">Index of \/nodejs-release\/v16.20.1\/ | \u6e05\u534e\u5927\u5b66\u5f00\u6e90\u8f6f\u4ef6\u955c\u50cf\u7ad9 | Tsinghua Open Source Mirror<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/opt\/node\ntar -Jvxf node-v16.20.1-linux-x64.tar.xz -C \/opt\/node\n\u8fd9\u91cc\u5efa\u8bae\u518d\u5b89\u88c5\u4e00\u4e2anode-sass\u7684release\u5305\uff0c\u56e0\u4e3a\u6bcf\u6b21\u524d\u7aefnpm install\u51fa\u95ee\u9898\u6709\u4e00\u534a\u539f\u56e0\u90fd\u662f\u56e0\u4e3anode-sass\u5b89\u88c5\u51fa\u95ee\u9898\uff0c\u800c\u4e14\u5185\u7f51\u4e5f\u6ca1\u8054\u7f51\uff0c\u8fd9\u91cc\u6211\u4e5f\u5c31\u4e00\u8d77\u79bb\u7ebf\u5b89\u88c5\u4e86\u3002\u8fd9\u4e2anode-sass\u7248\u672c\u9700\u8981\u4e0enode\u7248\u672c\u76f8\u5339\u914d\uff0c\u5426\u5219\u4f1a\u62a5\u9519\n\u547d\u4ee4\u884c\u67e5\u770b\u9700\u8981\u4e0b\u8f7d\u7684node-sass\u5b89\u88c5\u5305\nroot@nhlrs:~# \/opt\/node\/node-v16.20.1-linux-x64\/bin\/node -p \"&#091;process.platform,process.arch,process.versions.modules].join('-')\"                           \nlinux-x64-93<\/code><\/pre>\n\n\n\n<p>\u5230<a href=\"https:\/\/github.com\/sass\/node-sass\/releases\">Releases \u00b7 sass\/node-sass (github.com)<\/a>\u627e\u5230\u81ea\u5df1\u76f8\u5bf9\u5e94\u7684release\u5305\u540d\uff0c\u4e0b\u8f7d\u4e0b\u6765<\/p>\n\n\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"339\" height=\"556\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-71.png\" alt=\"\" class=\"wp-image-411\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-71.png 339w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-71-183x300.png 183w\" sizes=\"auto, (max-width: 339px) 100vw, 339px\" \/><\/figure>\n\n\n\n<p>\u5c06\u4e8c\u8fdb\u5236\u6587\u4ef6\u653e\u5230\/opt\/node\/linux-x64-93_binding.node<\/p>\n\n\n\n<p>\/etc\/profile\u91cc\u52a0\u4e0a\u73af\u5883\u53d8\u91cf\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PATH=\/opt\/node\/node-v16.20.1-linux-x64\/bin:$PATH\nexport SASS_BINARY_PATH=\/opt\/node\/linux-x64-93_binding.node<\/code><\/pre>\n\n\n\n<p>3\u3001jenkins\u8bbe\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>root@nhlrs:~# echo $PATH\n\/opt\/node\/node-v16.20.1-linux-x64\/bin:\/opt\/apache-maven-3.9.6\/bin:\/opt\/jdk\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/usr\/games:\/usr\/local\/games:\/snap\/bin<\/code><\/pre>\n\n\n\n<p>\u7cfb\u7edf\u7ba1\u7406-\u300b\u7cfb\u7edf\u7ba1\u7406-\u300b\u5168\u5c40\u5c5e\u6027-\u300b\u73af\u5883\u53d8\u91cf-\u300b\u952e\u503c\u5bf9\u5217\u8868<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"225\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-72-1024x225.png\" alt=\"\" class=\"wp-image-412\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-72-1024x225.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-72-300x66.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-72-768x169.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-72-1536x337.png 1536w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-72.png 1635w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"237\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-73-1024x237.png\" alt=\"\" class=\"wp-image-413\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-73-1024x237.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-73-300x69.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-73-768x178.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-73-1536x356.png 1536w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-73.png 1563w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u7cfb\u7edf\u7ba1\u7406-\u300b\u5168\u5c40\u5de5\u5177\u914d\u7f6e-\u300bNodeJS\u5b89\u88c5-\u300b\u65b0\u589eNodeJS<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"382\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-74-1024x382.png\" alt=\"\" class=\"wp-image-414\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-74-1024x382.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-74-300x112.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-74-768x286.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-74-1536x573.png 1536w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-74.png 1588w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>4\u3001\u6784\u5efa\u4e00\u4e2a\u81ea\u7531\u98ce\u683c\u7684\u8f6f\u4ef6\u9879\u76ee<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"362\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-75-1024x362.png\" alt=\"\" class=\"wp-image-415\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-75-1024x362.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-75-300x106.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-75-768x272.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-75.png 1202w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"344\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-76-1024x344.png\" alt=\"\" class=\"wp-image-416\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-76-1024x344.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-76-300x101.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-76-768x258.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-76.png 1270w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-77-1024x512.png\" alt=\"\" class=\"wp-image-417\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-77-1024x512.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-77-300x150.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-77-768x384.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-77.png 1307w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-78-1024x469.png\" alt=\"\" class=\"wp-image-418\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-78-1024x469.png 1024w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-78-300x138.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-78-768x352.png 768w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-78-1536x704.png 1536w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-78.png 1791w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\nnode -v\nnpm -v\ncd \/root\/.jenkins\/workspace\/node_test\/ruoyi-ui\nnpm install --registry=https:\/\/registry.npmmirror.com\n\/bin\/rm -rf .\/dist.zip .\/dist\nnpm run build:stage\nzip -r .\/dist.zip .\/dist\nif &#091; -f \".\/dist.zip\" ];then\n  echo \"\u62f7\u8d1ddist.zip\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u7684\/tmp\u76ee\u5f55\"\n  scp -q -oStrictHostKeyChecking=no .\/dist.zip root@210.14.75.1:\/mnt\/nhlrs3\/nginx1.24\/html\/nhlrs\/admin\n  echo \"ssh\u8fdc\u7a0b\u8fde\u63a5\u8fdb\u884c\u53d1\u5e03\u64cd\u4f5c\"\nssh -q -oStrictHostKeyChecking=no root@210.14.75.1 &lt;&lt;EOF\ncd \/mnt\/nhlrs3\/nginx1.24\/html\/nhlrs\/admin\n\/bin\/cp -r .\/dist .\/\u5907\u4efd\/dist_$(date +%Y%m%d%H%M%S)\nunzip -o .\/dist.zip\nEOF\nelse\n  echo \"dist.zip\u5305\u6ca1\u6253\u6210\u529f\uff0c\u4e2d\u65ad\u53d1\u5e03\"\nfi<\/code><\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u662fgitlab\u7684webhook\u8bbe\u7f6e\uff0c\u7528\u4e8e\u89e6\u53d1\u81ea\u52a8\u5316\u6784\u5efa<\/p>\n\n\n\n<p>\u4e3a\u4e86\u9632\u6b62\u51fa\u73b0url \u88abblock\u963b\u62e6\uff0c\u9700\u8981\u7ba1\u7406\u5458root\u767b\u5f55gitlab\uff0c\u5728admin area-\u300bsettings-\u300bnetwork-\u300boutbound requests\u91cc\uff1a\u52fe\u9009<\/p>\n\n\n\n<p>Allow requests to the local network from webhooks and integrations<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"202\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-79.png\" alt=\"\" class=\"wp-image-419\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-79.png 859w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-79-300x71.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-79-768x181.png 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/figure>\n\n\n\n<p>\u8bbe\u7f6ewebhook\uff0c\u5fc5\u987b\u81f3\u5c11\u662f\u67d0\u4e2a\u9879\u76ee\u7684Maintainer\u8eab\u4efd<\/p>\n\n\n\n<p>\u8bbe\u7f6e\u8eab\u4efd\u9700\u8981root\u767b\u5f55gitlab\uff0c\u5728admin area-\u300bprojects-\u300b\u67d0\u4e2a\u9879\u76ee-\u300bManage access\u91cc\u8bbe\u7f6e \u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"364\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-80.png\" alt=\"\" class=\"wp-image-420\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-80.png 580w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-80-300x188.png 300w\" sizes=\"auto, (max-width: 580px) 100vw, 580px\" \/><\/figure>\n\n\n\n<p>\u8bbe\u7f6ewebhook\uff1a\u67d0\u4e2a\u9879\u76ee-\u300bsettings-\u300bwebhooks -\u300bwebhook settings-\u300badd new webhook<\/p>\n\n\n\n<p>URL\u586b\u5199\uff1a<a href=\"http:\/\/210.14.75.1:18080\/buildByToken\/build?job=nhlrs-social-service-server&amp;token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY\">http:\/\/210.14.75.1:18080\/buildByToken\/build?job=nhlrs-social-service-server&amp;token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"857\" height=\"614\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-81.png\" alt=\"\" class=\"wp-image-421\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-81.png 857w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-81-300x215.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-81-768x550.png 768w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"240\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-82.png\" alt=\"\" class=\"wp-image-422\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-82.png 558w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-82-300x129.png 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n\n\n\n<p>\u62a5\u9519\uff1aHook executed successfully but returned HTTP 403 &lt;html&gt; &lt;head&gt; &lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text\/html;charset=ISO-8859-1&#8243;\/&gt; &lt;title&gt;Error 403 No valid crumb was included in the request&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt;&lt;h2&gt;HTTP ERROR 403 No valid crumb was included in the request&lt;\/h2&gt; &lt;table&gt; &lt;tr&gt;&lt;th&gt;URI:&lt;\/th&gt;&lt;td&gt;\/job\/zjfrpmt-docker\/buildWithParameters&lt;\/td&gt;&lt;\/tr&gt; &lt;tr&gt;&lt;th&gt;STATUS:&lt;\/th&gt;&lt;td&gt;403&lt;\/td&gt;&lt;\/tr&gt; &lt;tr&gt;&lt;th&gt;MESSAGE:&lt;\/th&gt;&lt;td&gt;No valid crumb was included in the request&lt;\/td&gt;&lt;\/tr&gt; &lt;tr&gt;&lt;th&gt;SERVLET:&lt;\/th&gt;&lt;td&gt;Stapler&lt;\/td&gt;&lt;\/tr&gt; &lt;\/table&gt; &lt;hr\/&gt;&lt;a href=&#8221;<a href=\"https:\/\/eclipse.org\/jetty\">https:\/\/eclipse.org\/jetty<\/a>&#8220;&gt;Powered by Jetty:\/\/ 10.0.20&lt;\/a&gt;&lt;hr\/&gt; &lt;\/body&gt; &lt;\/html&gt;<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a \u662f Jenkins \u7684<strong>CSRF \u5b89\u5168\u9632\u62a4\u673a\u5236<\/strong>\u5f15\u8d77\u7684\uff0c\u610f\u601d\u662f\uff1a<strong>\u4f60\u53d1\u51fa\u7684\u8bf7\u6c42\u4e2d\u6ca1\u6709\u5305\u542b Jenkins \u8981\u6c42\u7684\u201cCrumb\u201d\u9a8c\u8bc1\u4ee4\u724c<\/strong>\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u751f\u6210API Token<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u83b7\u53d6Token\u8def\u5f84<\/strong>\u767b\u5f55Jenkins\u540e\uff0c\u70b9\u51fb\u53f3\u4e0a\u89d2\u7528\u6237\u540d \u2192<strong>Configure<\/strong>\u2192<strong>API Token<\/strong>\u533a\u57df\uff0c\u70b9\u51fb<strong>Add new Token<\/strong>\u751f\u6210\u3002\u751f\u6210\u7684Token\u9700\u7acb\u5373\u4fdd\u5b58\uff0c\u5173\u95ed\u9875\u9762\u540e\u65e0\u6cd5\u518d\u6b21\u67e5\u770b<\/li>\n<\/ol>\n\n\n\n<p><strong>&nbsp; 2.\u8bbe\u7f6eWebhook<\/strong><\/p>\n\n\n\n<p>\u5728Git\u4ed3\u5e93\u7684Webhook\u914d\u7f6e\u4e2d\u586b\u5165Jenkins\u7684API\u89e6\u53d1URL\uff0c\u683c\u5f0f\u4e3a\uff1ahttp:\/\/&lt;\u7528\u6237\u540d&gt;:&lt;API_TOKEN&gt;@&lt;JENKINS_URL&gt;\/job\/&lt;JOB_NAME&gt;\/build?token=&lt;REMOTE_TRIGGER_TOKEN&gt; \u4f8b\u5982\uff1a<a href=\"http:\/\/whq:1129ea792d7a71afd634f9a62b5b61cd93@192.168.1.50:8888\/job\/zjfrpmt-docker\/buildWithParameters?token=f5eaa756-fa17-472a-8138-0a290ecf65c3&amp;branch=origin\/master\">http:\/\/whq:1129ea792d7a71afd634f9a62b5b61cd93@192.168.1.50:8888\/job\/zjfrpmt-docker\/buildWithParameters?token=f5eaa756-fa17-472a-8138-0a290ecf65c3&amp;branch=origin\/master<\/a><\/p>\n\n\n\n<p><a href=\"http:\/\/whq:1129ea792d7a71afd634f9a62b5b61cd93@192.168.1.50:8888\/job\/zjfrpmt-front-docker\/build?token=e3875dd9-1911-4d50-b9e1-01ab0701980f\">http:\/\/whq:1129ea792d7a71afd634f9a62b5b61cd93@192.168.1.50:8888\/job\/zjfrpmt-front-docker\/build?token=e3875dd9-1911-4d50-b9e1-01ab0701980f<\/a><\/p>\n\n\n\n<p>\u26a0\ufe0f\u6ca1\u6709\u9009\u62e9\u57fa\u4e8e\u53c2\u6570\u7684\u6784\u5efa\u65f6\uff0c\u4e0d\u5f97\u4f7f\u7528buildWithParameters\uff0c\u5426\u5219\u4f1a\u62a5500\u9519\u8bef\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6d4b\u8bd5Webhook\u80fd\u5426\u6210\u529f\u89e6\u53d1\u6784\u5efa<\/li>\n<\/ul>\n\n\n\n<p>\u9489\u9489\u6d88\u606f\u901a\u77e5\uff1a<\/p>\n\n\n\n<p>0\u3001\u9489\u9489\u7fa4\u8bbe\u7f6e\u673a\u5668\u4eba\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"575\" height=\"586\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-83.png\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-83.png 575w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-83-294x300.png 294w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/figure>\n\n\n\n<p>\u6dfb\u52a0\u673a\u5668\u4eba\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"799\" height=\"635\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-84.png\" alt=\"\" class=\"wp-image-425\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-84.png 799w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-84-300x238.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-84-768x610.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"825\" height=\"660\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-85.png\" alt=\"\" class=\"wp-image-426\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-85.png 825w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-85-300x240.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-85-768x614.png 768w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><\/figure>\n\n\n\n<p>1\u3001jenkins\u5b89\u88c5DingTalk\u63d2\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"318\" height=\"68\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-86.png\" alt=\"\" class=\"wp-image-427\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-86.png 318w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-86-300x64.png 300w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/figure>\n\n\n\n<p>2\u3001jenkins\u7cfb\u7edf\u7ba1\u7406\u91cc\u8bbe\u7f6e\u63d2\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"289\" height=\"85\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-87.png\" alt=\"\" class=\"wp-image-428\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"820\" height=\"230\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-88.png\" alt=\"\" class=\"wp-image-429\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-88.png 820w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-88-300x84.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-88-768x215.png 768w\" sizes=\"auto, (max-width: 820px) 100vw, 820px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"708\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-89.png\" alt=\"\" class=\"wp-image-430\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-89.png 1010w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-89-300x210.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/Image-89-768x538.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n\n\n\n<p>webhook\uff1a\u586b\u5199\u9489\u9489\u673a\u5668\u4eba\u7684webhook\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>\u52a0\u5bc6\uff1a\u586b\u5199\u9489\u9489\u673a\u5668\u4eba\u8bbe\u7f6e\u4e2d\u5b89\u5168\u9009\u9879\u201c\u52a0\u7b7e\u201d\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<p>3\u3001\u9879\u76ee\u8bbe\u7f6e\u4e2d\u7684\u673a\u5668\u4eba\u914d\u7f6e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1010\" height=\"860\" src=\"https:\/\/blog.opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-90.png\" alt=\"\" class=\"wp-image-431\" srcset=\"https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-90.png 1010w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-90-300x255.png 300w, https:\/\/opshub.com.cn\/wp-content\/uploads\/2026\/01\/image-90-768x654.png 768w\" sizes=\"auto, (max-width: 1010px) 100vw, 1010px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u5b89\u88c5jdk11 2\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5jenkins \u7cfb\u7edf\u8bbe\u7f6e\uff1a maven\u9879\u76ee\u914d\u7f6e\u8fd9\u51e0\u4e2a\u5730\u65b9\uff1a \u4e00\u3001 \u8fd9\u91cc\uff0c\u6211\u4eec\u6d4f\u89c8\u5668\u76f4\u63a5\u8bbf\u95ee\uff1ahttp:\/\/210.14.75.1:9980\/job\/nhlrs-social-service-server\/build?token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY, \u901a\u8fc7\u89c2\u5bdf\u63a7\u5236\u53f0\u53d1\u73b0\u4f1a\u81ea\u52a8\u89e6\u53d1\u6784\u5efa\u4efb\u52a1\uff0c\u4f46\u662f\u6211\u4eec\u6362\u4e2a\u6d4f\u89c8\u5668\u6216\u8005\u7528postman\u7684\u8bdd\u4f1a\u63d0\u793a\u6211\u4eec\u9700\u8981\u767b\u5f55\u3002\u9700\u8981\u5b89\u88c5\u4e2a\u63d2\u4ef6\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u542f\u7528token\u4e4b\u540e\u514d\u767b\u5f55\u3002 \u5728Jenkins\u5f97Plugin Manager\u7684\u53ef\u9009\u63d2\u4ef6\u4e2d\u641c\u7d22Build Authorization Token Root \u5b89\u88c5\u5b8c\u63d2\u4ef6\u4e4b\u540e\uff0c\u7528postman\u6d4b\u8bd5\uff1ahttp:\/\/210.14.75.1:18080\/buildByToken\/build?job=nhlrs-social-service-server&amp;token=iKQWQbHhf8FCtNDq9wS9fglXHLGG1A1ZyMMftJiXqgY clean package -Dmaven.test.skip=true \u3010\u53ef\u9009\u3011\u52a0\u901f\u7684\u53c2\u6570\uff1a-T 1C -Dmaven.test.skip=true -nsu -B&nbsp; \u53c2\u6570 \u542b\u4e49 \u662f\u5426\u63a8\u8350 -T 1C \u591a\u7ebf\u7a0b\u6784\u5efa\uff1a\u4f7f\u7528 CPU \u6838\u5fc3\u6570 \u00d7 1 \u4e2a\u7ebf\u7a0b \u2705 \u5f3a\u70c8\u63a8\u8350\u52a0\u901f\u6784\u5efa -Dmaven.test.skip=true \u8df3\u8fc7\u6d4b\u8bd5\u7684\u7f16\u8bd1\u548c\u6267\u884c \u2705 \u53ef\u5927\u5e45\u52a0\u5feb\u6784\u5efa\u901f\u5ea6 -nsu no-snapshot-updates\uff0c\u8df3\u8fc7 SNAPSHOT \u4f9d\u8d56\u7684\u8fdc\u7a0b\u68c0\u67e5\u66f4\u65b0 \u2705 \u53ef\u51cf\u5c11\u7f51\u7edc\u8bf7\u6c42 -B batch mode\uff1a\u975e\u4ea4\u4e92\u5f0f\u6a21\u5f0f\uff0c\u9002\u5408\u5728 CI\uff08Jenkins\uff09\u4e2d\u4f7f\u7528 \u2705 \u5fc5\u987b\u7528\u4e8e\u81ea\u52a8\u5316 \u5982\u679c\u662f\u5fae\u670d\u52a1\uff0c\u8981\u7528\uff1aclean package -am -pl:ruoyi-gateway-Dmaven.test.skip=true clean [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398"}],"version-history":[{"count":4,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions\/618"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}