{"id":10006574,"date":"2022-09-22T19:43:29","date_gmt":"2022-09-22T11:43:29","guid":{"rendered":"https:\/\/ityet.com\/?p=10006574"},"modified":"2022-09-22T19:43:29","modified_gmt":"2022-09-22T11:43:29","slug":"%e3%80%8c%f0%9f%8c%9f%e6%8a%80%e6%9c%af%e6%8e%a2%e7%b4%a2%f0%9f%8c%9f%e3%80%8d%e5%80%9f%e5%8a%a9-ci-cd-%e5%ae%9e%e7%8e%b0%e5%89%8d%e7%ab%af%e5%ba%94%e7%94%a8%e7%9a%84%e5%bf%ab%e9%80%9f%e5%9b%9e","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006574","title":{"rendered":"\u300c\ud83c\udf1f\u6280\u672f\u63a2\u7d22\ud83c\udf1f\u300d\u501f\u52a9 CI \/ CD \u5b9e\u73b0\u524d\u7aef\u5e94\u7528\u7684\u5feb\u901f\u56de\u6eda"},"content":{"rendered":"<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2CqS\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h2>\u80cc\u666f<\/h2>\n<p>\u5728 \u4e0a\u4e00\u8f6e\u4f18\u5316 \u91cc\uff0c \u6211\u4eec\u901a\u8fc7\u4f18\u5316\u4e00\u4e9b\u6784\u5efa\u5de5\u5177\u548c\u6d41\u7a0b\uff0c \u628a\u6784\u5efa\u8017\u65f6\u4f18\u5316\u5230\u4e86 4min \u5de6\u53f3\uff0c\u6574\u4f53\u53d1\u5e03\u8017\u65f6\u4ece 15min \u4f18\u5316\u5230\u4e86 8 min \u5de6\u53f3, \u6709\u8f83\u5927\u63d0\u5347\uff0c \u4f46\u662f\u4f9d\u65e7\u5b58\u5728\u63d0\u5347\u7a7a\u95f4\u3002<\/p>\n<p>\u7ecf\u8fc7\u4e00\u4e9b\u601d\u8003\u4e0e\u6d4b\u8bd5\uff0c\u7ed9\u51fa\u6280\u672f\u65b9\u6848\uff0c\u5e76\u843d\u5730\u5230\u4e86 WMS \u4e1a\u52a1\u4e2d\uff0c \u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2CpW\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u4e0e\u539f\u6d41\u7a0b\u76f8\u6bd4\u4e4b\uff0c \u53d1\u5e03\u8017\u65f6\u7531 8 min \u964d\u4f4e\u5230\u4e86 1 \uff5e2 min \u5de6\u53f3\u3002<\/p>\n<p>\u4e0b\u9762\u6211\u4e3b\u8981\u4ecb\u7ecd\u4e00\u4e0b\u65b9\u6848\u7ec6\u8282\uff0c\u603b\u7ed3\u6539\u9020\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898\uff0c  \u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<h2>\u6b63\u6587<\/h2>\n<h3>\u6574\u4f53\u65b9\u6848\u8bbe\u8ba1<\/h3>\n<h4>1. \u73b0\u6709\u67b6\u6784<\/h4>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2Cp5\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u73b0\u6709\u67b6\u6784\u4e0d\u8db3\uff1a <\/p>\n<p>\u6bcf\u6b21\u6267\u884c jenkins \u90fd\u8981\u91cd\u65b0\u5f00\u59cb\u6267\u884c\u6784\u5efa\u3001\u6253\u5305\u64cd\u4f5c\uff0c\u975e\u5e38\u7684\u8017\u65f6\u3002Jenkins \u6ca1\u6709\u7559\u5b58\u6253\u5305\u7ed3\u679c\uff0c\u5bfc\u81f4\u65e0\u6cd5\u505a\u56de\u6eda\u7b49\u64cd\u4f5c\u3002<\/p>\n<p>\u5f53\u524d\u6784\u5efa\u6d41\u7a0b\u4e2d\u5b58\u5728\u5927\u91cf\u65e0\u6548\u4e14\u8017\u65f6\u7684\u6784\u5efa\u53ef\u4ee5\u53bb\u6389\uff0c\u5982\u4f7f\u7528 docker \u6253\u5305\u4e86\u955c\u50cf\uff0c\u4f46\u5bf9\u4e8e\u8be5\u9879\u76ee\u800c\u8a00\u662f\u65e0\u7528\u7684\u3002<\/p>\n<h3>\u67b6\u6784\u6539\u8fdb<\/h3>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2Cqc\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h4>CI\/CD \u524d\u7f6e\u6253\u5305<\/h4>\n<p>MR \u4e4b\u540e\uff0c \u4f1a\u89e6\u53d1 CI, \u6267\u884c\u6784\u5efa\u4efb\u52a1\uff0c\u6784\u5efa\u8fc7\u7a0b\u5728 2 min \u5de6\u53f3\uff0c \u6784\u5efa\u6210\u529f\u4e4b\u540e\uff0c \u4f1a\u628a\u5bf9\u5e94\u7684\u7ed3\u679c\u63a8\u9001\u5230\u5bf9\u5e94\u7684\u5206\u652f\u4fdd\u5b58\u8d77\u6765\u3002 <\/p>\n<p>Jenkins \u6784\u5efa\u9636\u6bb5\uff0c \u76f4\u63a5\u4ece\u5bf9\u5e94\u7684\u5206\u652f\u53d6\u56de\u6253\u5305\u7ed3\u679c\uff0c \u63a8\u9001\u5230\u9759\u6001\u8d44\u6e90\u670d\u52a1\u5668\uff0c\u8fd9\u4e2a\u8fc7\u7a0b\u975e\u5e38\u5feb\uff0c 1 \u5206\u949f\u4e4b\u5185\u5373\u53ef\u5b8c\u6210\u53d1\u5e03\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a \u7531\u4e8e\u662f\u5728 gitlab \u4e2d\u6784\u5efa\u7684\uff0c \u8fd9\u65f6\u5019\u4f1a\u7f3a\u5c11\u4e00\u4e9b\u73af\u5883\u4fe1\u606f\uff0c \u6bd4\u5982 CID\u3002 <\/p>\n<p>WMS\u4e1a\u52a1\u4e2d\u5e76\u6ca1\u6709\u7528\u8fd9\u4e2a\u53c2\u6570\u505a\u4e00\u4e9b\u7279\u6b8a\u7684\u903b\u8f91\uff0c \u6240\u4ee5\u6ca1\u6709\u5f71\u54cd\u3002 \u5982\u679c\u9879\u76ee\u9700\u8981\u7528\u5230 CID\uff0c \u5219\u9700\u8981\u989d\u5916\u5904\u7406\u3002<\/p>\n<h4>\u53d1\u5e03\u4e0e\u56de\u6eda<\/h4>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2Cqh\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u53d1\u5e03\u6d41\u7a0b\u76f4\u63a5\u53d1\u5e03\u7ecf\u8fc7 gitlab CICD\u6253\u5305\u51fa\u7684\u7ed3\u679c\u5206\u652f\uff0c\u4f53\u73b0\u5728 jenkins\u6d41\u7a0b\u4e2d\uff0c\u5c31\u76f8\u5f53\u4e8e\u662f\u4ec5\u4ec5\u590d\u5236\u4e86\u4e00\u4efd\u7ed3\u679c\u5185\u5bb9\u5230\u76ee\u6807\u9759\u6001\u670d\u52a1\u5668\u56de\u6eda\u64cd\u4f5c\u76f4\u63a5\u6253\u5305 build-release\u5206\u652f\u7684\u4e0a\u4e00\u4e2a tag \u5373\u53ef\u3002<\/p>\n<p>uat\u3001 release \u53d1\u5e03\u4e4b\u540e\uff0c \u8d44\u6e90\u4f1a\u88ab\u6253\u4e0a tag \u4fdd\u5b58\u5728 gitlab \u4e2d\uff0c \u4e00\u4e2a tag \u5bf9\u5e94\u4e00\u4efd\u8d44\u6e90\uff0c\u501f\u52a9 lasg_tag \u5373\u53ef\u5b9e\u73b0\u5feb\u901f\u56de\u6eda\u3002<\/p>\n<p>\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4<\/p>\n<ol>\n<li>\u4fee\u6539 deploy.json \u4e0e .gitlab-ci.yml<\/li>\n<\/ol>\n<pre><code>&quot;project_dir_depth&quot;: 2, \n&quot;project_name&quot;: &quot;wmsuiv2&quot;,\n&quot;module_name&quot;: &quot;static&quot;, \n&quot;build&quot;: {\n&quot;commands&quot;: [&quot;echo 'deploy websitestatic'&quot;], \n&quot;upload_static&quot;: {\n  &quot;static_dir&quot;: &quot;dist&quot;, &quot;enable_cdn&quot;: false\n},\n&quot;docker_image&quot;: {\n&quot;base_image&quot;: &quot;harbor.shopeemobile.com\/shopee\/nodejs-base:14&quot;,\n&quot;dependent_libraries_files&quot;: [],\n&quot;run_commands&quot;: [&quot;pip install -U shopee-deploy-common&quot;]\n\/\/ ... \n<\/code><\/pre>\n<p>\/\/ .gitlab-ci.yml<\/p>\n<pre><code>image: harbor.shopeemobile.com\/shopee\/nodejs-base:14\n\nvariables:\nenv: '${CI_COMMIT_REF_NAME}' ENV: '${CI_COMMIT_REF_NAME}'\n\nstages:\nbuild\n\nbuild:\nstage: build \nrules:\nif: $CI_COMMIT_REF_NAME == 'uat' &amp;&amp; $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == null\nif: $CI_COMMIT_REF_NAME == 'release' &amp;&amp; $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == null\nif: $CI_COMMIT_REF_NAME =~ \/version\/\/release-(.*)$\/ &amp;&amp; $CI_PIPELINE_SOURCE == 'web' variables:\nGITLAB_URL: 'https:\/\/gitlab-ci-token:${CI_JOB_TOKEN}@git.garena.com\/shopee\/bg-logistics\/tianlu\/fe\/wms-ui.git' GITLAB_W_URL: 'https:\/\/${USERNAME}:${PERSONAL_ACCESS_TOKEN}@git.garena.com\/shopee\/bg-logistics\/tianlu\/fe\/wms-\nui.git' script:\necho &quot;CI_COMMIT_BRANCH:${CI_COMMIT_BRANCH};CI_COMMIT_TAG:${CI_COMMIT_TAG}; CI_DEFAULT_BRANCH:${CI_DEFAULT_BRANCH};CI_MERGE_REQUEST_TARGET_BRANCH_NAME=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}&quot;\nnpm install --registry=https:\/\/npm.shopee.io\necho &quot;[sys] npm install [finish]&quot;\nnpm run build\necho &quot;[sys] npm run build [finish]&quot;\nif [[ &quot;$CI_COMMIT_REF_NAME&quot; =~ ^version\/release-.*$ ]]; then\nTARGET_BRANCH=&quot;temp\/build-staging&quot;\nelse\nTARGET_BRANCH=&quot;temp\/build-${CI_COMMIT_REF_NAME}&quot;\nfi\ngit clone -b ${TARGET_BRANCH} ${GITLAB_URL}\ncd wms-ui\/\necho &quot;TARGET_BRANCH:${TARGET_BRANCH}&quot;\necho &quot;CI_COMMIT_REF_NAME:${CI_COMMIT_REF_NAME}&quot;\ngit config --global user.name &quot;wms.frontend&quot;\ngit config --global user.email &quot;<a href=\"\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"1f68726c31796d70716b7a717b5f6c77706f7a7a317c7072\">[email&#160;protected]<\/a>&quot;\nrm -rf .\/dist\ncp -rf ..\/dist .\ngit add .\ngit commit -am &quot;git ci push&quot; -q\ngit push ${GITLAB_W_URL} ${TARGET_BRANCH}\necho &quot;[sys] git push to ${TARGET_BRANCH} [successful]&quot;\nif [[ &quot;$CI_COMMIT_REF_NAME&quot; == &quot;release&quot; ]]; then\nTAG=&quot;tag-$(date +%y%m%d-v%H%M)&quot;\necho -e &quot;[sys] tag name ${TAG}&quot;\ngit tag ${TAG}\ngit push ${GITLAB_W_URL} ${TAG}\necho &quot;[push succcessful]&quot;\nfi<\/code><\/pre>\n<p>\u8fd9\u4e2a\u8fc7\u7a0b\u5b8c\u6210\u4e4b\u540e\uff0c \u540e\u7eed\u7684\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u521b\u5efa\u5bf9\u5e94\u7684\u5206\u652f<\/li>\n<\/ol>\n<p>\u4ee5 test \u5206\u652f\u4e3a\u4f8b\uff0c \u4ece test \u5206\u652f \u62c9\u4e00\u4e2a\u65b0\u5206\u652f\uff1a build-test, \u7528\u4e8e\u5b58\u653e\u6253\u5305\u7ed3\u679c\u3002<\/p>\n<p>\u8fd9\u4e2a\u5206\u652f\u5185\uff0c\u53ea\u4fdd\u7559\u4e09\u4e2a\u6587\u4ef6\/\u6587\u4ef6\u5939\uff1adeploy\u3001dist\u3001.gitignore\uff0c \u5176\u4ed6\u5185\u5bb9\u5168\u90e8\u5220\u9664\u3002<\/p>\n<p>\u5176\u4e2d\uff0cdeploy\u662f\u7528\u4e8e\u7ed9jenkins\u8bfb\u53d6\u6784\u5efa\u811a\u672c\u4f7f\u7528\uff1b <\/p>\n<p>dist\u76ee\u5f55\u4e3agitlab CI\/CD\u540e\u7eed\u6253\u5305\u7684\u4ea7\u7269\uff1b<br \/>.gitignore\u4e3a\u9700\u8981\u6392\u9664\u63d0\u4ea4\u7684\u76ee\u5f55\u53ca\u6587\u4ef6\uff1b<\/p>\n<p>\u7279\u522b\u6ce8\u610f\uff1a<br \/>.gitignore  \u4e2d\u4e0d\u80fd\u5ffd\u7565  \/dist  \u3002<\/p>\n<p>\u9879\u76ee\u8bbe\u7f6e\u4e2d\uff0c  \u8981\u628a  reject  unverified  users  \u9009\u9879\u5173\u6389\uff0c  \u5426\u5219\u4f1a\u5bfc\u81f4\u63a8\u9001\u5931\u8d25\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2Cqr\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u5176\u4ed6\u7ec6\u8282\uff1a<\/p>\n<ul>\n<li>\u955c\u50cf\u5fc5\u987b\u4fdd\u6301\u8ddf jenkins \u811a\u672c\u914d\u7f6e\u4e00\u6837<\/li>\n<li>\u9700\u8981\u4f7f\u7528 gitlab-ci-token\u6765\u5728\u811a\u672c\u547d\u4ee4\u4e2d\u62c9\u53d6\u4ee3\u7801Push \u9636\u6bb5\u662f\u5fc5\u987b\u4f9d\u8d56\u4e8e build \u9636\u6bb5<br \/>\u5e94\u7528\u8303\u56f4\u4e3a uat\uff0crelease\uff0cversion\/release-xxx\u5206\u652f\uff0c\u5176\u4e2d\u524d\u4e24\u4e2a\u4e3a\u5408\u4ee3\u7801\u65f6\u81ea\u52a8\u89e6\u53d1\uff0c\u7248\u672c\u5206\u652f\u9700\u8981\u4eba\u5de5\u5728 CI\/C -&gt; pipeline -&gt; \u70b9 \u2018run pipeline\u2019\u6309\u94ae\u89e6\u53d1<\/li>\n<\/ul>\n<p>\u8de8\u8d26\u6237\u63d0\u4ea4\u6b65\u9aa4\uff1a<\/p>\n<p>\u5c06\u516c\u7528\u8d26\u6237 wms.frontend \u52a0\u5165\u5230\u8be5\u9879\u76ee\uff0c\u5e76\u8bbe\u7f6e\u4e3a maintainer. \uff08\u516c\u7528\u8d26\u6237\u7533\u8bf7\u5730\u5740\uff1a \u94fe\u63a5\uff0c WMS \u9879\u76ee\u7ec4 \u5df2\u7ecf\u7533\u8bf7\uff0c\u4e0d\u7528\u989d\u5916\u7533\u8bf7\uff09 \u4f7f\u7528 wms.frontend\u767b\u5f55\uff0c\u5728\u4e2a\u4eba\u8d26\u53f7\u7684 edit profile \u4e2d\u7684 Access Tokens\u521b\u5efa\u4e00\u4e2a Personal Access Token\uff0c\u5f97\u5230 username \u548ctoken\u3002<\/p>\n<p>\u5c06 username \u548c token \u5b58\u5230\u5bf9\u5e94\u9879\u76ee\u7684 CI\/CD \u4e0b\u7684 variables \u4e2d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728 cicd \u811a\u672c\u4e2d\u901a\u8fc7\u53d8\u91cf ${username} \u83b7\u53d6\u5230\u9a8c\u8bc1\u7684\u4fe1\u606f\u7136\u540e\u4e0a\u9762\u5728git push\u524d\uff0c\u9700\u8981\u5c06git config \u8d26\u6237\u914d\u7f6e\u6210\u516c\u5171\u8d26\u6237\u4fe1\u606f\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u4f7f\u7528\u4ed6\u7684token\u8fdb\u884c\u63d0\u4ea4\u64cd\u4f5c\u4e86\u3002<br \/><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2Cqx\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u914d\u7f6e\uff0c MR \u4e4b\u540e\uff0c \u5c31\u4f1a\u81ea\u52a8\u6267\u884c\u6784\u5efa\uff0c \u5e76\u63a8\u9001\u7ed3\u679c\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2Cqy\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u5230\u6b64\uff0c \u7b2c\u4e00\u6b65\u5c31\u5b8c\u6210\u4e86\uff0c \u4e4b\u540e\u5c31\u662f\u5728 DMS \u4e2d\u521b\u5efa\u53d1\u5e03\u4efb\u52a1\u3002<\/p>\n<p>\u4e0e\u73b0\u6709\u6d41\u7a0b\u4e0d\u540c\u7684\u53ea\u662f\u9009\u62e9\u7684\u6784\u5efa\u5206\u652f\u4e0d\u540c\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2CqA\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u4ee5 test \u4e3a\u4f8b\uff0c\u73b0\u6709\u6d41\u7a0b\u9009\u62e9\u7684\u662f test \u5206\u652f\uff0c \u65b0\u6d41\u7a0b\u9700\u8981\u9009\u62e9\uff1a temp\/build-test \u5206\u652f, \u6bd5\u7adf\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d \uff0cjenkins \u53ea\u662f\u5bf9 temp\/build-test \u5206\u652f\u4e2d\u7684\u6587\u4ef6\u505a\u4e86\u4e00\u6b21\u62f7\u8d1d\uff0c \u5e76\u63a8\u9001\u9759\u6001\u6587\u4ef6\u670d\u52a1\u5668\u4e2d\u3002<\/p>\n<p>\u81f3\u6b64\uff0c\u6539\u9020\u5c31\u5b8c\u6210\u4e86\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc2CpW\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u6700\u540e\u9700\u8981\u63d0\u9192\u7684\u662f\uff1a<\/p>\n<p>merge \u4e4b\u540e\uff0c\u4f1a\u6709\u5927\u7ea6 2 \u5206\u949f\u7684\u6784\u5efa\u8017\u65f6\uff0c\u5982\u679c\u6b64\u65f6\u7acb\u523b\u53bb jenkins \u53d1\u5e03\uff0c \u5219\u53ef\u80fd\u53d1\u5e03\u7684\u662f\u65e7\u7684\u6784\u5efa\u7ed3\u679c\uff0c \u8fd9\u867d\u7136\u6ca1\u6709\u7834\u574f\u6027\uff0c \u4f46\u4e0e\u9884\u671f\u4e0d\u7b26\u3002<\/p>\n<p>\u5bf9\u5e94\u63aa\u65bd\u662f\uff1a<\/p>\n<p>\u6dfb\u52a0 seatalk \u6d88\u606f\u7fa4\u901a\u77e5\uff0c\u6784\u5efa\u5b8c\u6210\u4e4b\u540e\uff0c\u63d0\u9192\u76f8\u5173\u53d1\u5e03\u4eba\u5458\uff0c \u5b8c\u6210\u53d1\u5e03\u3002<\/p>\n<h3>\u515c\u5e95\u63aa\u65bd\uff1a<\/h3>\n<p>\u5982\u679c\u9047\u5230\u6781\u7aef\u60c5\u51b5\u5bfc\u81f4 gitlab \u65e0\u6cd5\u5b8c\u6210\u6784\u5efa\uff0c \u4e5f\u53ef\u4ee5\u6539\u56de\u539f\u6709\u7684\u914d\u7f6e\uff0c \u8d70\u539f\u6709\u6d41\u7a0b\u3002<\/p>\n<p>\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/p>\n<p>\u628a deploy.json \u548c .gitlabyml \u91cd\u7f6e\uff0c\u5408\u5e76\u5230\u5bf9\u5e94\u5206\u652f\u3002<br \/>\u5728 Jenkins \u6784\u5efa\u539f\u59cb\u5206\u652f\uff08test\u3001uat\u3001release\uff09\u5373\u53ef\u3002<\/p>\n<h3>\u601d\u8003\u4e0e\u5ef6\u4f38<\/h3>\n<p>\u6784\u5efa\u4e0e\u53d1\u5e03\u4e4b\u95f4\u5b58\u5728\u65f6\u95f4\u5dee\uff0c \u8fd9\u4e2a\u95ee\u9898\u770b\u65f6\u5019\u80fd\u4e0e DMS \u56e2\u961f\u6c9f\u901a\uff0c \u5f00\u653e\u4e00\u4e2a\u6d88\u606f\u901a\u77e5\u80fd\u529b\uff0c \u81ea\u52a8\u5b8c\u6210\u8fd9\u4e2a\u8fc7\u7a0b\uff0c\u51cf\u5c11\u5bf9\u4eba\u7684\u4f9d\u8d56\u3002<\/p>\n<p>\u6dfb\u52a0\u673a\u5668\u4eba\u901a\u77e5\u7684\u65b9\u5f0f\u4e5f\u4e0d\u590d\u6742\uff0c \u5b9e\u73b0\u5982\u4e0b\uff1a<\/p>\n<pre><code>\/\/ ...\n- &gt;\nsh -c &quot;curl -i -X POST -H 'Content-Type: application\/json' -d '{\/&quot;tag\/&quot;:\/&quot;text\/&quot;,\/&quot;text\/&quot;:{\/&quot;content\/&quot;: \/&quot; WMS-UI FE:${TAG}\/&quot;}}' https:\/\/openapi.seatalk.io\/webhook\/group\/${groudId}&quot;\n- fi\n\/\/ ...\n<\/code><\/pre>\n<h2>\u603b\u7ed3<\/h2>\n<p>\u4f20\u7edf\u7684\u53d1\u5e03\u4e0e\u56de\u6eda\uff0c\u4f9d\u8d56\u4e00\u6b21\u6784\u5efa\uff0c \u672c\u65b9\u6848\u7684\u6838\u5fc3\u601d\u8def\u662f: <code>\u501f\u52a9\u7b2c\u4e09\u65b9\u5b58\u50a8\uff0c\u4fdd\u5b58\u6253\u5305\u4ea7\u7269\uff0c\u4ee5\u6b64\u51cf\u5c11\u6784\u5efa\u65f6\u95f4\u3002<\/code><\/p>\n<p>\u7c7b\u4f3c\u7684\u65b9\u6848\u8fd8\u6709\u5f88\u591a\uff0c \u4e5f\u4e0d\u4ec5\u4ec5\u8fd9\u4e00\u79cd\u89e3\u51b3\u65b9\u5f0f\uff0c\u5728\u6b64\u4e0d\u505a\u5ef6\u4f38\u3002<\/p>\n<p>\u672c\u7bc7\u88ab\u5bb9\u5c31\u8fd9\u4e48\u591a\uff0c \u5e0c\u671b\u80fd\u7ed9\u5927\u5bb6\u4e00\u4e9b\u542f\u53d1\uff0c \u8c22\u8c22\u3002<\/p>\n<p>\u624d\u758f\u5b66\u6d45\uff0c \u5982\u679c\u9519\u8bef\uff0c \u8fd8\u8bf7\u6307\u6b63\uff0c \u8c22\u8c22\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042531062\">https:\/\/segmentfault.com\/a\/1190000042531062<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u80cc\u666f \u5728 \u4e0a\u4e00\u8f6e\u4f18\u5316 \u91cc\uff0c \u6211\u4eec\u901a\u8fc7\u4f18\u5316\u4e00\u4e9b\u6784\u5efa\u5de5\u5177\u548c\u6d41\u7a0b\uff0c \u628a\u6784\u5efa\u8017\u65f6\u4f18\u5316\u5230\u4e86 4min \u5de6\u53f3\uff0c\u6574\u4f53\u53d1\u5e03\u8017\u65f6 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006574","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006574"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006574\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}