{"id":767,"date":"2023-08-01T09:58:21","date_gmt":"2023-08-01T01:58:21","guid":{"rendered":"https:\/\/zhaocunwei.co.uk\/?p=767"},"modified":"2023-08-01T10:08:42","modified_gmt":"2023-08-01T02:08:42","slug":"jekins","status":"publish","type":"post","link":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/","title":{"rendered":"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD"},"content":{"rendered":"<h1>\u524d\u8a00<\/h1>\n<p>\u6700\u8fd1\u9879\u76ee\u9700\u8981\u8fdb\u884cCICD\u90e8\u7f72\u9879\u76ee\uff0c<\/p>\n<h1>\u7f16\u5199\u811a\u672c\u542f\u52a8Jenkins<\/h1>\n<p>Linux \u7f16\u5199sh\u811a\u672c\uff0c\u76f4\u63a5\u542f\u52a8\u811a\u672c\uff0c\u53bb\u67e5\u770b\u670d\u52a1\u5668\u662f\u5426\u6b63\u5728\u8fd0\u884cJenkins.war\uff0c\u5982\u679c\u6ca1\u6709\u542f\u52a8jenkins.war\u5c31\u542f\u52a8\uff0c\u5982\u679c\u542f\u52a8\u4e86\u5c31kill \u6389\u91cd\u65b0\u542f\u52a8jenkins.war\uff0c\u7136\u540e\u5e76\u63d0\u4f9b\u600e\u4e48\u542f\u52a8\u8fd9\u4e2a\u811a\u672c\u7684\u547d\u4ee4\u3002<\/p>\n<pre><code class=\"language-bash\">#!\/bin\/bash\n# \u68c0\u67e5Jenkins\u662f\u5426\u8fd0\u884c\nif ! pgrep -f jenkins.war &gt; \/dev\/null; then\n  # \u6ca1\u6709\u8fd0\u884c,\u542f\u52a8Jenkins\n  nohup java -jar \/path\/to\/jenkins.war &gt; \/dev\/null 2&gt;&amp;1 &amp;\n  echo &quot;Jenkins started&quot;\nelse\n  # \u6b63\u5728\u8fd0\u884c,kill\u6389Jenkins\u8fdb\u7a0b\n  pkill -f jenkins.war\n  # \u7b49\u5f85Jenkins\u505c\u6b62\n  while pgrep -f jenkins.war &gt; \/dev\/null; do sleep 1; done\n  # \u91cd\u65b0\u542f\u52a8Jenkins\n  nohup java -jar \/path\/to\/jenkins.war &gt; \/dev\/null 2&gt;&amp;1 &amp;  \n  echo &quot;Jenkins restarted&quot;\nfi<\/code><\/pre>\n<p>\u8981\u8fd0\u884c\u8fd9\u4e2a\u811a\u672c,\u4f7f\u5176\u53ef\u6267\u884c\u540e\u76f4\u63a5\u6267\u884c:<\/p>\n<pre><code class=\"language-bash\">chmod +x jenkins.sh\n.\/jenkins.sh<\/code><\/pre>\n<p>\u6216\u8005\u4e0d\u9700\u8981\u4f7f\u53ef\u6267\u884c,\u7528bash\u89e3\u91ca\u5668\u6267\u884c:<\/p>\n<pre><code class=\"language-bash\">bash jenkins.sh<\/code><\/pre>\n<p>\u5bf9\u811a\u672c\u8fdb\u884c\u4f18\u5316,\u6307\u5b9aJenkins\u7684\u5b89\u88c5\u76ee\u5f55\u5e76\u8bb0\u5f55\u65e5\u5fd7:<\/p>\n<pre><code class=\"language-bash\">#!\/bin\/bash\n# Jenkins\u5b89\u88c5\u76ee\u5f55\nJENKINS_HOME=\/usr\/local\/jenkins\n# Jenkins\u65e5\u5fd7\u6587\u4ef6\nLOG_FILE=$JENKINS_HOME\/jenkins.log\n# \u68c0\u67e5Jenkins\u662f\u5426\u8fd0\u884c\nif ! pgrep -f jenkins.war &gt; \/dev\/null; then\n  # \u542f\u52a8Jenkins,\u65e5\u5fd7\u8f93\u51fa\u5230\u6307\u5b9a\u6587\u4ef6\n  nohup java -jar $JENKINS_HOME\/jenkins.war &gt; $LOG_FILE 2&gt;&amp;1 &amp;\n  echo &quot;Jenkins started&quot; &gt;&gt; $LOG_FILE\nelse\n  # kill\u65e7\u8fdb\u7a0b\n  pkill -f jenkins.war\n  # \u7b49\u5f85\u8fdb\u7a0b\u7ed3\u675f\n  while pgrep -f jenkins.war &gt; \/dev\/null; do sleep 1; done  \n  # \u91cd\u65b0\u542f\u52a8,\u65e5\u5fd7\u5199\u5165\u6307\u5b9a\u6587\u4ef6  \n  nohup java -jar $JENKINS_HOME\/jenkins.war &gt; $LOG_FILE 2&gt;&amp;1 &amp;\n  echo &quot;Jenkins restarted&quot; &gt;&gt; $LOG_FILE\nfi<\/code><\/pre>\n<p>\u76ee\u524dJenkins\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86\uff0c\u6211\u60f3\u4eceGit\uff08<a href=\"http:\/\/192.167.154.193:4567\/aaaaaaaa\/after_ssssssss.git\uff09\u4e0a\u9762\u83b7\u53d6\u4ee3\u7801\uff0c\u5e76\u8fdb\u884c\u6784\u5efa\u53d1\u9001\u5230\u670d\u52a1\u5668134.341.312.343\u4e0a\u9762\uff0c\u9700\u8981\u514d\u5bc6\u53d1\u9001\uff0c\u7136\u540e\u9700\u8981\u4f7f\u7528\u6d41\u6c34\u7ebf\uff0c\u6d41\u6c34\u7ebf\u5148\u770b\u770b\u670d\u52a1\u5668\u4e0a\u9762\u662f\u5426\u6709\u6b64jar\u5305\uff0c\u5982\u679c\u6ca1\u6709\u5c31\u76f4\u63a5\u53d1\u9001\uff0c\u5982\u679c\u6709\u5c31\u5f00\u59cb\u67e5\u770b\u662f\u5426\u542f\u52a8\uff0c\u542f\u52a8\u4e2d\u76f4\u63a5kill\u6389\uff0c\u5e76\u8fdb\u884c\u901a\u8fc7\u5e74\u6708\u65e5\u8fdb\u884c\u5907\u4efd\u5230\u5f53\u524d\u76ee\u5f55\uff0c\u5982\u679c\u53d1\u9001\u5f53\u524d\u7248\u672c\u6ca1\u6709\u542f\u52a8\u6210\u529f\uff0c\u518d\u8fdb\u884c\u628a\u4e0a\u9762\u7684\u5907\u4efd\u7684jar\u5305\u91cd\u65b0\u6539\u4e3ajar\u5305\uff0c\u5e76\u8fdb\u884c\u542f\u52a8\uff0c\u628aJenkins\u5305\u6539\u540d\u4e3a\u9519\u8bef\u7684.jar\u5305\uff0c\u8bf7\u63d0\u4f9b\u8be6\u7ec6\u7684\u914d\u7f6e\u6b65\u9aa4\u548cpipline\u7684\u811a\u672c\">http:\/\/192.167.154.193:4567\/aaaaaaaa\/after_ssssssss.git\uff09\u4e0a\u9762\u83b7\u53d6\u4ee3\u7801\uff0c\u5e76\u8fdb\u884c\u6784\u5efa\u53d1\u9001\u5230\u670d\u52a1\u5668134.341.312.343\u4e0a\u9762\uff0c\u9700\u8981\u514d\u5bc6\u53d1\u9001\uff0c\u7136\u540e\u9700\u8981\u4f7f\u7528\u6d41\u6c34\u7ebf\uff0c\u6d41\u6c34\u7ebf\u5148\u770b\u770b\u670d\u52a1\u5668\u4e0a\u9762\u662f\u5426\u6709\u6b64jar\u5305\uff0c\u5982\u679c\u6ca1\u6709\u5c31\u76f4\u63a5\u53d1\u9001\uff0c\u5982\u679c\u6709\u5c31\u5f00\u59cb\u67e5\u770b\u662f\u5426\u542f\u52a8\uff0c\u542f\u52a8\u4e2d\u76f4\u63a5kill\u6389\uff0c\u5e76\u8fdb\u884c\u901a\u8fc7\u5e74\u6708\u65e5\u8fdb\u884c\u5907\u4efd\u5230\u5f53\u524d\u76ee\u5f55\uff0c\u5982\u679c\u53d1\u9001\u5f53\u524d\u7248\u672c\u6ca1\u6709\u542f\u52a8\u6210\u529f\uff0c\u518d\u8fdb\u884c\u628a\u4e0a\u9762\u7684\u5907\u4efd\u7684jar\u5305\u91cd\u65b0\u6539\u4e3ajar\u5305\uff0c\u5e76\u8fdb\u884c\u542f\u52a8\uff0c\u628aJenkins\u5305\u6539\u540d\u4e3a\u9519\u8bef\u7684.jar\u5305\uff0c\u8bf7\u63d0\u4f9b\u8be6\u7ec6\u7684\u914d\u7f6e\u6b65\u9aa4\u548cpipline\u7684\u811a\u672c<\/a>\uff0c<\/p>\n<pre><code class=\"language-bash\">node {\n  stage(&#039;Checkout&#039;) {\n    git url: &#039;http:\/\/192.167.143.265:4567\/fffg-vgfdfgdf\/after_dddd.git&#039; \n  }\n  stage(&#039;Build&#039;) {\n    \/\/ \u8fd9\u91cc\u7f16\u8bd1\u6253\u5305\u751f\u6210jar\u5305\n  }\n  stage(&#039;Deploy&#039;) {\n    sshPublisher(\n      continueOnError: false, \n      failOnError: true, \n      publishers: [\n        sshPublisherDesc(\n          configName: &#039;ssh_server&#039;,  \n          transfers: [\n            sshTransfer(\n              sourceFiles: &#039;target\/*.jar&#039;,\n              removePrefix: &#039;target\/&#039;,\n              remoteDirectory: &#039;\/app\/jar&#039;\n            )\n          ], \n          usePromotionTimestamp: false, \n          useWorkspaceInPromotion: false,\n          verbose: true\n        )\n      ]\n    )\n    \/\/ \u68c0\u67e5\u8fdc\u7a0b\u670d\u52a1\u5668\u662f\u5426\u5df2\u5b58\u5728jar\u5305\n    def remoteFileExists = sh(\n      script: &quot;ssh ubuntu@134.4545.3454.44545 test -f \/app\/jar\/app.jar&quot;,\n      returnStatus: true\n    )\n    if (remoteFileExists == 0) {\n      \/\/ \u6587\u4ef6\u5b58\u5728,\u8fdb\u884c\u91cd\u542f  \n      sh &quot;ssh ubuntu@134.4545.3454.44545 systemctl restart app.service&quot;\n    } else {\n      \/\/ \u6587\u4ef6\u4e0d\u5b58\u5728,\u9996\u6b21\u90e8\u7f72 \n      sh &quot;ssh ubuntu@134.4545.3454.44545 systemctl start app.service&quot; \n    }\n  }\n}<\/code><\/pre>\n<h1>Maven\u6784\u5efaSpring Boot\u9879\u76ee\u5e76\u90e8\u7f72\u7684\u5b8c\u6574Jenkinsfile Pipeline\u811a\u672c\u793a\u4f8b:<\/h1>\n<pre><code class=\"language-groovy\">pipeline {\n  agent any\n  tools {\n    maven &#039;Maven 3.6.1&#039;\n  }\n  stages {\n    stage(&#039;Build&#039;) {\n      steps {\n        sh &#039;mvn clean package&#039;\n      }\n    }\n    stage(&#039;Test&#039;) {\n      steps {\n        sh &#039;mvn test&#039; \n      }\n    }\n    stage(&#039;Deliver&#039;) {\n      steps { \n        script {\n          def server = &#039;192.168.1.100&#039;\n          def appName = &#039;myapp&#039;\n          \/\/ \u68c0\u67e5\u65e7\u7248\u672c\u662f\u5426\u8fd0\u884c\n          sh &quot;ssh $server ps -ef | grep ${appName} | grep -v grep&quot;\n          def isRunning = env.EXIT_CODE == 0\n          if (isRunning) {\n            echo &quot;$appName is running on $server, stopping it...&quot;\n            \/\/ \u505c\u6b62\u65e7\u7248\u672c\n            sh &quot;ssh $server pkill -f ${appName}&quot;\n          }\n          \/\/ \u4e0a\u4f20\u5e76\u5907\u4efd\u65b0\u7248\u672c\n          sh &quot;scp target\/${appName}-*.jar $server:\/opt\/apps&quot;\n          sh &quot;ssh $server mv \/opt\/apps\/${appName}.jar \/opt\/apps\/${appName}-\\$(date +%Y%m%d).jar&quot;\n          \/\/ \u542f\u52a8\u65b0\u7248\u672c \n          try {\n            sh &quot;ssh $server nohup java -jar \/opt\/apps\/${appName}-*.jar &gt; \/opt\/apps\/${appName}.log 2&gt;&amp;1 &amp;&quot;\n            echo &quot;Started new version successfully.&quot;  \n          } catch (exc) {\n            \/\/ \u65b0\u7248\u672c\u542f\u52a8\u5931\u8d25,\u56de\u6eda \n            echo &quot;Failed to start new version, rolling back...&quot;\n            sh &quot;ssh $server mv \/opt\/apps\/${appName}-*.jar \/opt\/apps\/${appName}-failed-\\$(date +%Y%m%d).jar&quot; \n            sh &quot;ssh $server mv \/opt\/apps\/${appName}-\\$(date +%Y%m%d).jar ${appName}.jar&quot;\n            sh &quot;ssh $server nohup java -jar \/opt\/apps\/${appName}.jar &gt; \/opt\/apps\/${appName}.log 2&gt;&amp;1 &amp;&quot;\n            throw exc\n          }\n        }\n      }\n    }\n  }\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u6700\u8fd1\u9879\u76ee\u9700\u8981\u8fdb\u884cCICD\u90e8\u7f72\u9879\u76ee\uff0c \u7f16\u5199\u811a\u672c\u542f\u52a8Jenkins Linux \u7f16\u5199sh\u811a\u672c\uff0c\u76f4\u63a5\u542f\u52a8\u811a\u672c\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false},"categories":[1],"tags":[],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"og:description\" content=\"\u524d\u8a00 \u6700\u8fd1\u9879\u76ee\u9700\u8981\u8fdb\u884cCICD\u90e8\u7f72\u9879\u76ee\uff0c \u7f16\u5199\u811a\u672c\u542f\u52a8Jenkins Linux \u7f16\u5199sh\u811a\u672c\uff0c\u76f4\u63a5\u542f\u52a8\u811a\u672c\uff0c [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/\" \/>\n<meta property=\"og:site_name\" content=\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-01T01:58:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-01T02:08:42+00:00\" \/>\n<meta name=\"author\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/\",\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/\",\"name\":\"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"isPartOf\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\"},\"datePublished\":\"2023-08-01T01:58:21+00:00\",\"dateModified\":\"2023-08-01T02:08:42+00:00\",\"author\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\"},\"breadcrumb\":{\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/zhaocunwei.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#website\",\"url\":\"https:\/\/zhaocunwei.co.uk\/\",\"name\":\"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug\",\"description\":\"This site shares programming bugs\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4\",\"name\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-CN\",\"@id\":\"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g\",\"caption\":\"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46\"},\"sameAs\":[\"http:\/\/zhaocunwei.co.uk\"],\"url\":\"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/","og_locale":"zh_CN","og_type":"article","og_title":"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","og_description":"\u524d\u8a00 \u6700\u8fd1\u9879\u76ee\u9700\u8981\u8fdb\u884cCICD\u90e8\u7f72\u9879\u76ee\uff0c \u7f16\u5199\u811a\u672c\u542f\u52a8Jenkins Linux \u7f16\u5199sh\u811a\u672c\uff0c\u76f4\u63a5\u542f\u52a8\u811a\u672c\uff0c [&hellip;]","og_url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/","og_site_name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","article_published_time":"2023-08-01T01:58:21+00:00","article_modified_time":"2023-08-01T02:08:42+00:00","author":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/","url":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/","name":"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD - \u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","isPartOf":{"@id":"https:\/\/zhaocunwei.co.uk\/#website"},"datePublished":"2023-08-01T01:58:21+00:00","dateModified":"2023-08-01T02:08:42+00:00","author":{"@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4"},"breadcrumb":{"@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/#breadcrumb"},"inLanguage":"zh-CN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/zhaocunwei.co.uk\/index.php\/2023\/08\/01\/jekins\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/zhaocunwei.co.uk\/"},{"@type":"ListItem","position":2,"name":"\u914d\u7f6e\u8be6\u7ec6\u7684Jenkins\uff0c\u5e76\u8fdb\u884cCICD"}]},{"@type":"WebSite","@id":"https:\/\/zhaocunwei.co.uk\/#website","url":"https:\/\/zhaocunwei.co.uk\/","name":"\u672c\u7f51\u7ad9\u5206\u4eab\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684bug","description":"This site shares programming bugs","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/zhaocunwei.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-CN"},{"@type":"Person","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/dfb1dc0fc4a330c41908d477cd99c0b4","name":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46","image":{"@type":"ImageObject","inLanguage":"zh-CN","@id":"https:\/\/zhaocunwei.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4226cc1ca6640507df1d2d4ba3da7a62?s=96&d=mm&r=g","caption":"\u603b\u662f\u5e78\u798f\u7684\u8001\u8c4c\u8c46"},"sameAs":["http:\/\/zhaocunwei.co.uk"],"url":"https:\/\/zhaocunwei.co.uk\/index.php\/author\/18500103508163-com\/"}]}},"_links":{"self":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/767"}],"collection":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=767"}],"version-history":[{"count":1,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/767\/revisions"}],"predecessor-version":[{"id":768,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/767\/revisions\/768"}],"wp:attachment":[{"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaocunwei.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}