{"id":2471,"date":"2018-02-05T15:57:33","date_gmt":"2018-02-05T07:57:33","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2471"},"modified":"2018-02-05T15:57:33","modified_gmt":"2018-02-05T07:57:33","slug":"jenkins-%e9%9b%86%e6%88%90%e9%92%89%e9%92%89%e7%be%a4%e9%80%9a%e7%9f%a5-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2471","title":{"rendered":"Jenkins \u96c6\u6210\u9489\u9489\u7fa4\u901a\u77e5 \u6559\u7a0b"},"content":{"rendered":"<p>\n\tJenkins \u6784\u5efa\u7684\u9879\u76ee\u4fe1\u606f\u4e00\u822c\u4f1a\u901a\u8fc7\u90ae\u4ef6\u53d1\u9001\u7ed9\u5bf9\u5e94\u7684\u5f00\u53d1\u4eba\u5458\u3002\u4f46\u662f\u90ae\u4ef6\u7684\u5f0a\u7aef\u662f\u63a5\u6536\u67e5\u770b\u4e0d\u662f\u5f88\u53ca\u65f6\u3002\u56e0\u6b64\u628a Jenkins \u6dfb\u52a0\u8fdb\u9489\u9489\u804a\u5929\u7fa4\u5c31\u5f88\u9ad8\u6548\u7684\u89e3\u51b3\u8be5\u7c7b\u95ee\u9898\uff0c\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528 Jenkins \u96c6\u6210\u9489\u9489\u7fa4\u901a\u77e5\u3002\n<\/p>\n<p>\n\t1\u3001\u9996\u5148\u5728\u9489\u9489\u5ba2\u6237\u7aef\u65b0\u5efa\u4e00\u4e2a\u901a\u77e5\u7fa4\uff0c\u70b9\u51fb\u804a\u5929\u673a\u5668\u4eba\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u9489\u9489\u6dfb\u52a0\u804a\u5929\u673a\u5668\u4eba\" src=\"http:\/\/hexo.moonkite.cn\/jenkins\/jenkins-15.png\" style=\"width: 1288px;height: 252px\" \/>\n<\/p>\n<p>\n\t2\u3001\u9009\u62e9\u4e00\u4e2a\u81ea\u5b9a\u4e49\u673a\u5668\u4eba\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u9489\u9489\u6dfb\u52a0\u81ea\u5b9a\u4e49\u673a\u5668\u4eba\" src=\"http:\/\/hexo.moonkite.cn\/jenkins\/jenkins-16.png\" style=\"width: 1266px;height: 790px\" \/>\n<\/p>\n<p>\n\t3\u3001\u70b9\u51fb\u6dfb\u52a0\uff0c\u4f1a\u81ea\u52a8\u751f\u6210 webhook \u5730\u5740\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u9489\u9489\u751f\u6210 webhook \u5730\u5740\" src=\"http:\/\/hexo.moonkite.cn\/jenkins\/jenkins-17.png\" style=\"width: 1232px;height: 402px\" \/>\n<\/p>\n<p>\n\t4\u3001\u5230\u300c\u7cfb\u7edf\u7ba1\u7406\u300d-\u300c\u7ba1\u7406\u63d2\u4ef6\u300d\u4e0b\u5b89\u88c5 <a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Dingding+Notification+Plugin\" name=\"Dingding[\u9489\u9489] Plugin\" target=\"_blank\" title=\"Dingding[\u9489\u9489] Plugin\">Dingding[\u9489\u9489] Plugin<\/a> \u63d2\u4ef6\u3002\n<\/p>\n<p>\n\t5\u3001\u56de\u5230\u9879\u76ee\u914d\u7f6e\u9875\u9762\uff0c\u589e\u52a0\u6784\u5efa\u540e\u64cd\u4f5c\u6b65\u9aa4\uff0c\u9009\u62e9&ldquo;\u9489\u9489\u901a\u77e5\u5668\u914d\u7f6e&rdquo;\uff0c\u586b\u5199\u9489\u9489access token\uff0c\u5373\u4e0a\u4e00\u6b65 webhook \u5730\u5740\u4e2d\u7684 access_token \u53c2\u6570\u503c\uff0c\u5e76\u9009\u62e9\u901a\u77e5\u65f6\u673a\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u9489\u9489access token\u914d\u7f6e\" src=\"http:\/\/hexo.moonkite.cn\/jenkins\/jenkins-18.png\" style=\"width: 1260px;height: 552px\" \/>\n<\/p>\n<p>\n\t\u6ce8\u610f\uff1a Jenkins URL\u914d\u7f6e\u4e2d\u9700\u8981\u5728\u6700\u540e\u6dfb\u52a0&quot;\/&quot;\uff0c\u8981\u4e0d\u7136\u4f1a\u5bfc\u81f4\u62fc\u63a5\u7684url\u51fa\u9519\uff0c\u8fd9\u91cc\u586b\u5199\u6709\u95ee\u9898\u4f1a\u5bfc\u81f4\u65e0\u6cd5\u4ece\u9489\u9489\u4e2d\u8df3\u8f6c\u5230Jenkins\u4efb\u52a1\u3002\n<\/p>\n<p>\n\t6\u3001\u6700\u540e\u6784\u5efa\u9879\u76ee\uff0c\u5c06\u4f1a\u6536\u5230\u5982\u4e0b\u7c7b\u4f3c\u901a\u77e5\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"\u9489\u9489\u6536\u5230Jenkins\u673a\u5668\u4eba\u6d88\u606f\" src=\"http:\/\/hexo.moonkite.cn\/jenkins\/jenkins-19.png\" style=\"width: 806px;height: 598px\" \/>\n<\/p>\n<p>\n\t\u70b9\u51fb\u6784\u5efa\uff0c\u9489\u9489\u4f1a\u7acb\u9a6c\u6536\u5230\u6d88\u606f\uff0c\u70b9\u51fb\u6d88\u606f\u8df3\u8f6c\u5230\u5bf9\u5e94\u7684\u4efb\u52a1\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2471\">Jenkins \u96c6\u6210\u9489\u9489\u7fa4\u901a\u77e5 \u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>Jenkins \u6784\u5efa\u7684\u9879\u76ee\u4fe1\u606f\u4e00\u822c\u4f1a\u901a\u8fc7\u90ae\u4ef6\u53d1\u9001\u7ed9\u5bf9\u5e94\u7684\u5f00\u53d1\u4eba\u5458\u3002\u4f46\u662f\u90ae\u4ef6\u7684\u5f0a\u7aef\u662f\u63a5\u6536\u67e5\u770b\u4e0d\u662f\u5f88\u53ca\u65f6\u3002\u56e0\u6b64\u628a  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,435],"tags":[69,1594,1381],"class_list":["post-2471","post","type-post","status-publish","format-standard","hentry","category-yyzt","category-xpcode","tag-java","tag-jenkins","tag-1381"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2471"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2471\/revisions"}],"predecessor-version":[{"id":2472,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2471\/revisions\/2472"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}