{"id":6883,"date":"2025-10-12T20:47:18","date_gmt":"2025-10-12T12:47:18","guid":{"rendered":"https:\/\/t.n-years.com\/?p=6883"},"modified":"2025-10-12T20:47:29","modified_gmt":"2025-10-12T12:47:29","slug":"ci-cd-%e9%97%a8%e7%a6%81%e7%b3%bb%e7%bb%9f%e8%ae%be%e8%ae%a1","status":"publish","type":"post","link":"https:\/\/t.n-years.com\/?p=6883","title":{"rendered":"CI\/CD \u95e8\u7981\u7cfb\u7edf\u8bbe\u8ba1"},"content":{"rendered":"<p>\u5728 CI\/CD \u6d41\u7a0b\u4e2d\uff0c<strong>\u95e8\u7981\u7cfb\u7edf\uff08Gate System\uff09<\/strong> \u662f\u4fdd\u969c\u4ee3\u7801\u8d28\u91cf\u3001\u5b89\u5168\u5408\u89c4\u548c\u4ea4\u4ed8\u7a33\u5b9a\u6027\u7684\u6838\u5fc3\u673a\u5236\uff0c\u5176\u6838\u5fc3\u76ee\u6807\u662f\u901a\u8fc7\u201c\u51c6\u5165-\u6821\u9a8c-\u62e6\u622a\/\u653e\u884c\u201d\u7684\u903b\u8f91\uff0c\u5728\u4ee3\u7801\u4ece\u5f00\u53d1\u5230\u751f\u4ea7\u7684\u5173\u952e\u8282\u70b9\uff08\u5982\u63d0\u4ea4\u3001\u5408\u5e76\u3001\u90e8\u7f72\uff09\u8bbe\u7f6e\u201c\u5173\u5361\u201d\uff0c\u907f\u514d\u4e0d\u5408\u683c\u7684\u4ee3\u7801\u6216\u5236\u54c1\u8fdb\u5165\u4e0b\u6e38\u73af\u8282\u3002<\/p>\n<p>\u95e8\u7981\u7cfb\u7edf\u7684\u8bbe\u8ba1\u9700\u56f4\u7ed5 <strong>\u201c\u4f55\u65f6\u62e6\u3001\u62e6\u4ec0\u4e48\u3001\u600e\u4e48\u62e6\u3001\u8c01\u6765\u653e\u884c\u201d<\/strong> \u56db\u4e2a\u6838\u5fc3\u95ee\u9898\u5c55\u5f00\uff0c\u7ed3\u5408\u56e2\u961f\u7684\u8d28\u91cf\u6807\u51c6\u3001\u5408\u89c4\u8981\u6c42\u548c\u4ea4\u4ed8\u6548\u7387\u5e73\u8861\uff0c\u5f62\u6210\u5206\u5c42\u3001\u53ef\u914d\u7f6e\u7684\u6821\u9a8c\u4f53\u7cfb\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bbe\u8ba1\u65b9\u6848\uff1a<\/p>\n<h3>\u4e00\u3001\u95e8\u7981\u7cfb\u7edf\u7684\u6838\u5fc3\u5b9a\u4f4d\u4e0e\u8bbe\u8ba1\u539f\u5219<\/h3>\n<p>\u5728\u8bbe\u8ba1\u524d\u9700\u660e\u786e\u95e8\u7981\u7684\u6838\u5fc3\u4ef7\u503c\u2014\u2014<strong>\u201c\u9632\u9519\u800c\u975e\u963b\u6d41\u201d<\/strong>\uff0c\u5373\u901a\u8fc7\u81ea\u52a8\u5316\u6821\u9a8c\u51cf\u5c11\u4eba\u5de5\u5e72\u9884\uff0c\u540c\u65f6\u907f\u514d\u8fc7\u5ea6\u6821\u9a8c\u5bfc\u81f4\u4ea4\u4ed8\u6548\u7387\u4e0b\u964d\u3002\u9700\u9075\u5faa\u4ee5\u4e0b\u539f\u5219\uff1a<\/p>\n<ol>\n<li><strong>\u5206\u5c42\u6821\u9a8c<\/strong>\uff1a\u6309 CI\/CD \u6d41\u7a0b\u7684\u201c\u4e0a\u6e38\u2192\u4e0b\u6e38\u201d\u9010\u6b65\u63d0\u5347\u6821\u9a8c\u5f3a\u5ea6\uff08\u5982\u4ee3\u7801\u63d0\u4ea4\u9636\u6bb5\u8f7b\u91cf\u6821\u9a8c\uff0c\u751f\u4ea7\u90e8\u7f72\u9636\u6bb5\u5168\u91cf\u6821\u9a8c\uff09\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5316\u4f18\u5148<\/strong>\uff1a90% \u4ee5\u4e0a\u7684\u6821\u9a8c\u903b\u8f91\u9700\u81ea\u52a8\u5316\u5b9e\u73b0\uff08\u5982\u5355\u5143\u6d4b\u8bd5\u3001\u4ee3\u7801\u626b\u63cf\uff09\uff0c\u4ec5\u590d\u6742\u573a\u666f\uff08\u5982\u67b6\u6784\u8bc4\u5ba1\uff09\u5f15\u5165\u4eba\u5de5\u95e8\u7981\u3002<\/li>\n<li><strong>\u53ef\u914d\u7f6e\u6027<\/strong>\uff1a\u652f\u6301\u6309\u9879\u76ee\/\u73af\u5883\/\u5206\u652f\u81ea\u5b9a\u4e49\u95e8\u7981\u89c4\u5219\uff08\u5982\u5f00\u53d1\u5206\u652f\u8df3\u8fc7\u5b89\u5168\u626b\u63cf\uff0c\u4e3b\u5206\u652f\u5f3a\u5236\u4ee3\u7801\u8bc4\u5ba1\uff09\u3002<\/li>\n<li><strong>\u53ef\u89c2\u6d4b\u6027<\/strong>\uff1a\u8bb0\u5f55\u95e8\u7981\u89e6\u53d1\u65e5\u5fd7\u3001\u5931\u8d25\u539f\u56e0\u53ca\u653e\u884c\u8bb0\u5f55\uff0c\u4fbf\u4e8e\u95ee\u9898\u8ffd\u6eaf\u548c\u6d41\u7a0b\u4f18\u5316\u3002<\/li>\n<\/ol>\n<h3>\u4e8c\u3001\u95e8\u7981\u7cfb\u7edf\u7684\u5206\u5c42\u67b6\u6784\u8bbe\u8ba1<\/h3>\n<p>CI\/CD \u6d41\u7a0b\u901a\u5e38\u5206\u4e3a <strong>\u4ee3\u7801\u63d0\u4ea4\u2192\u6784\u5efa\u6253\u5305\u2192\u6d4b\u8bd5\u9a8c\u8bc1\u2192\u90e8\u7f72\u53d1\u5e03<\/strong> \u56db\u4e2a\u9636\u6bb5\uff0c\u95e8\u7981\u7cfb\u7edf\u9700\u5728\u6bcf\u4e2a\u9636\u6bb5\u8bbe\u7f6e\u9488\u5bf9\u6027\u7684\u201c\u5173\u5361\u201d\uff0c\u5f62\u6210\u5206\u5c42\u9632\u5fa1\u4f53\u7cfb\u3002\u5404\u9636\u6bb5\u7684\u95e8\u7981\u8bbe\u8ba1\u5982\u4e0b\uff1a<\/p>\n<h4>1. \u4ee3\u7801\u63d0\u4ea4\u9636\u6bb5\uff1a\u9884\u6821\u9a8c\u95e8\u7981\uff08\u62e6\u622a\u201c\u660e\u663e\u4e0d\u5408\u683c\u201d\u7684\u4ee3\u7801\uff09<\/h4>\n<p><strong>\u6838\u5fc3\u76ee\u6807<\/strong>\uff1a\u5728\u4ee3\u7801\u63d0\u4ea4\u5230\u7248\u672c\u5e93\u524d\uff08\u6216\u63d0\u4ea4\u540e\u89e6\u53d1\u6784\u5efa\u524d\uff09\uff0c\u62e6\u622a\u8bed\u6cd5\u9519\u8bef\u3001\u683c\u5f0f\u4e0d\u89c4\u8303\u3001\u7b80\u5355\u903b\u8f91\u95ee\u9898\uff0c\u51cf\u5c11\u65e0\u6548\u6784\u5efa\u3002<br \/>\n<strong>\u89e6\u53d1\u65f6\u673a<\/strong>\uff1a\u672c\u5730\u63d0\u4ea4\u524d\uff08\u901a\u8fc7 Git Hook\uff09\u3001\u8fdc\u7a0b\u63d0\u4ea4\u540e\uff08\u5206\u652f\u4fdd\u62a4\u89c4\u5219\u89e6\u53d1\uff09\u3002<br \/>\n<strong>\u5173\u952e\u6821\u9a8c\u89c4\u5219<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>\u4ee3\u7801\u683c\u5f0f\u95e8\u7981<\/strong>\uff1a\u901a\u8fc7 <code>ESLint<\/code>\uff08\u524d\u7aef\uff09\u3001<code>Pylint<\/code>\uff08Python\uff09\u3001<code>Checkstyle<\/code>\uff08Java\uff09\u7b49\u5de5\u5177\u6821\u9a8c\u4ee3\u7801\u98ce\u683c\uff0c\u4e0d\u7b26\u5408\u56e2\u961f\u89c4\u8303\u5219\u62e6\u622a\u3002<\/li>\n<li><strong>\u8bed\u6cd5\/\u7f16\u8bd1\u95e8\u7981<\/strong>\uff1a\u672c\u5730\u63d0\u4ea4\u524d\u901a\u8fc7 <code>npm run lint<\/code>\u3001<code>go build<\/code> \u7b49\u547d\u4ee4\u6821\u9a8c\u8bed\u6cd5\uff0c\u8fdc\u7a0b\u63d0\u4ea4\u540e\u89e6\u53d1\u8f7b\u91cf\u7f16\u8bd1\uff0c\u786e\u4fdd\u65e0\u7f16\u8bd1\u9519\u8bef\u3002<\/li>\n<li><strong>\u63d0\u4ea4\u4fe1\u606f\u95e8\u7981<\/strong>\uff1a\u901a\u8fc7 Git Hook \u5f3a\u5236\u63d0\u4ea4\u4fe1\u606f\u7b26\u5408\u89c4\u8303\uff08\u5982\u524d\u7f00\u5fc5\u987b\u4e3a <code>feat:\/fix:\/docs:<\/code>\uff09\uff0c\u907f\u514d\u65e0\u610f\u4e49\u63d0\u4ea4\u4fe1\u606f\uff08\u5982\u201c\u4fee\u6539\u4ee3\u7801\u201d\uff09\u3002<\/li>\n<li><strong>\u5206\u652f\u4fdd\u62a4\u95e8\u7981<\/strong>\uff1a\u5bf9\u6838\u5fc3\u5206\u652f\uff08\u5982 <code>main<\/code>\/<code>release<\/code>\uff09\u8bbe\u7f6e\u201c\u7981\u6b62\u76f4\u63a5\u63d0\u4ea4\u201d\uff0c\u5f3a\u5236\u901a\u8fc7 Pull Request\uff08PR\uff09\u63d0\u4ea4\uff0c\u4e14 PR \u9700\u6ee1\u8db3\u540e\u7eed\u95e8\u7981\u3002<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a\u901a\u8fc7 GitHub \u5206\u652f\u4fdd\u62a4\u89c4\u5219\u8bbe\u7f6e\uff1a<code>main<\/code> \u5206\u652f\u7981\u6b62\u76f4\u63a5 push\uff0c\u6240\u6709\u4ee3\u7801\u9700\u901a\u8fc7 PR \u5408\u5e76\uff0c\u4e14 PR \u5fc5\u987b\u5148\u901a\u8fc7\u4ee3\u7801\u683c\u5f0f\u548c\u8bed\u6cd5\u6821\u9a8c\u3002<\/p>\n<h4>2. \u6784\u5efa\u6253\u5305\u9636\u6bb5\uff1a\u5236\u54c1\u5408\u89c4\u95e8\u7981\uff08\u62e6\u622a\u201c\u4e0d\u53ef\u7528\u201d\u7684\u5236\u54c1\uff09<\/h4>\n<p><strong>\u6838\u5fc3\u76ee\u6807<\/strong>\uff1a\u786e\u4fdd\u6784\u5efa\u51fa\u7684\u5236\u54c1\uff08\u5982 Jar \u5305\u3001Docker \u955c\u50cf\u3001\u9759\u6001\u8d44\u6e90\u5305\uff09\u7b26\u5408\u5408\u89c4\u8981\u6c42\uff0c\u5177\u5907\u53ef\u8ffd\u6eaf\u6027\uff0c\u907f\u514d\u201c\u65e0\u6548\u5236\u54c1\u201d\u8fdb\u5165\u6d4b\u8bd5\u73af\u8282\u3002<br \/>\n<strong>\u89e6\u53d1\u65f6\u673a<\/strong>\uff1a\u4ee3\u7801\u63d0\u4ea4\u540e\u89e6\u53d1\u81ea\u52a8\u6784\u5efa\uff0c\u6784\u5efa\u5b8c\u6210\u540e\u6267\u884c\u95e8\u7981\u6821\u9a8c\u3002<br \/>\n<strong>\u5173\u952e\u6821\u9a8c\u89c4\u5219<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>\u5236\u54c1\u5b8c\u6574\u6027\u95e8\u7981<\/strong>\uff1a\u6821\u9a8c\u5236\u54c1\u662f\u5426\u5305\u542b\u5fc5\u8981\u6587\u4ef6\uff08\u5982\u914d\u7f6e\u6587\u4ef6\u3001\u4f9d\u8d56\u6e05\u5355 <code>pom.xml<\/code>\/<code>package.json<\/code>\uff09\uff0c\u907f\u514d\u7f3a\u5931\u5173\u952e\u7ec4\u4ef6\u5bfc\u81f4\u90e8\u7f72\u5931\u8d25\u3002<\/li>\n<li><strong>\u7248\u672c\u89c4\u8303\u95e8\u7981<\/strong>\uff1a\u5f3a\u5236\u5236\u54c1\u7248\u672c\u7b26\u5408\u8bed\u4e49\u5316\u7248\u672c\uff08SemVer\uff09\u89c4\u8303\uff08\u5982 <code>v1.2.3<\/code>\/<code>v2.0.0-beta<\/code>\uff09\uff0c\u4e14\u7248\u672c\u53f7\u4e0e\u5206\u652f\/\u63d0\u4ea4\u4fe1\u606f\u5173\u8054\uff08\u5982\u5305\u542b Git \u77ed SHA\uff1a<code>v1.2.3-abc123<\/code>\uff09\u3002<\/li>\n<li><strong>\u4f9d\u8d56\u5b89\u5168\u95e8\u7981<\/strong>\uff1a\u901a\u8fc7 <code>Dependabot<\/code>\uff08GitHub \u5185\u7f6e\uff09\u3001<code>Snyk<\/code>\u3001<code>OWASP Dependency-Check<\/code> \u626b\u63cf\u5236\u54c1\u7684\u7b2c\u4e09\u65b9\u4f9d\u8d56\uff0c\u68c0\u6d4b\u9ad8\u5371\u6f0f\u6d1e\uff08\u5982 Log4j \u6f0f\u6d1e\uff09\uff0c\u8d85\u8fc7\u98ce\u9669\u9608\u503c\u5219\u62e6\u622a\u3002<\/li>\n<li><strong>\u5236\u54c1\u7b7e\u540d\u95e8\u7981<\/strong>\uff1a\u5bf9\u654f\u611f\u5236\u54c1\uff08\u5982\u751f\u4ea7\u73af\u5883\u955c\u50cf\uff09\u5f3a\u5236\u6570\u5b57\u7b7e\u540d\uff08\u5982 Docker Content Trust\uff09\uff0c\u672a\u7b7e\u540d\u6216\u7b7e\u540d\u65e0\u6548\u7684\u5236\u54c1\u7981\u6b62\u8fdb\u5165\u4e0b\u6e38\u3002<\/li>\n<li><strong>\u6784\u5efa\u65e5\u5fd7\u95e8\u7981<\/strong>\uff1a\u6821\u9a8c\u6784\u5efa\u65e5\u5fd7\u65e0 ERROR \u7ea7\u522b\u7684\u5f02\u5e38\uff08\u5982\u4f9d\u8d56\u4e0b\u8f7d\u5931\u8d25\u3001\u7f16\u8bd1\u8b66\u544a\u8d85\u8fc7\u9608\u503c\uff09\uff0c\u907f\u514d\u201c\u5e26\u75c5\u6784\u5efa\u201d\u7684\u5236\u54c1\u6d41\u51fa\u3002<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a\u4f7f\u7528 GitLab CI \u914d\u7f6e\u6784\u5efa\u9636\u6bb5\u95e8\u7981\uff1a\u82e5 <code>OWASP Dependency-Check<\/code> \u68c0\u6d4b\u5230 \u22651 \u4e2a Critical \u7ea7\u6f0f\u6d1e\uff0c\u6784\u5efa\u4efb\u52a1\u76f4\u63a5\u5931\u8d25\uff0c\u5236\u54c1\u4e0d\u63a8\u9001\u5230\u4ed3\u5e93\u3002<\/p>\n<h4>3. \u6d4b\u8bd5\u9a8c\u8bc1\u9636\u6bb5\uff1a\u8d28\u91cf\u8fbe\u6807\u95e8\u7981\uff08\u62e6\u622a\u201c\u8d28\u91cf\u4e0d\u8fbe\u6807\u201d\u7684\u7248\u672c\uff09<\/h4>\n<p><strong>\u6838\u5fc3\u76ee\u6807<\/strong>\uff1a\u901a\u8fc7\u81ea\u52a8\u5316\u6d4b\u8bd5\u548c\u4eba\u5de5\u8bc4\u5ba1\uff0c\u9a8c\u8bc1\u4ee3\u7801\u7684\u529f\u80fd\u6b63\u786e\u6027\u3001\u6027\u80fd\u3001\u5b89\u5168\u6027\uff0c\u786e\u4fdd\u7248\u672c\u6ee1\u8db3\u4ea4\u4ed8\u8d28\u91cf\u6807\u51c6\uff0c\u662f CI\/CD \u4e2d\u6700\u6838\u5fc3\u7684\u201c\u8d28\u91cf\u5173\u5361\u201d\u3002<br \/>\n<strong>\u89e6\u53d1\u65f6\u673a<\/strong>\uff1a\u5236\u54c1\u63a8\u9001\u81f3\u6d4b\u8bd5\u4ed3\u5e93\u540e\uff0c\u81ea\u52a8\u89e6\u53d1\u6d4b\u8bd5\u6d41\u6c34\u7ebf\uff1b\u6d4b\u8bd5\u5b8c\u6210\u540e\u6267\u884c\u95e8\u7981\u6821\u9a8c\u3002<br \/>\n<strong>\u5173\u952e\u6821\u9a8c\u89c4\u5219<\/strong>\uff08\u6309\u4f18\u5148\u7ea7\u6392\u5e8f\uff09\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u6821\u9a8c\u7c7b\u578b<\/th>\n<th>\u5de5\u5177\/\u5b9e\u73b0\u65b9\u5f0f<\/th>\n<th>\u95e8\u7981\u89c4\u5219\u793a\u4f8b<\/th>\n<th>\u81ea\u52a8\u5316\u7a0b\u5ea6<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5355\u5143\u6d4b\u8bd5\u95e8\u7981<\/td>\n<td>JUnit\uff08Java\uff09\u3001PyTest\uff08Python\uff09\u3001Jest\uff08\u524d\u7aef\uff09<\/td>\n<td>\u5355\u5143\u6d4b\u8bd5\u8986\u76d6\u7387 \u226580%\uff0c\u4e14\u65e0\u6d4b\u8bd5\u7528\u4f8b\u5931\u8d25<\/td>\n<td>100% \u81ea\u52a8\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u96c6\u6210\u6d4b\u8bd5\u95e8\u7981<\/td>\n<td>Postman\u3001RestAssured\u3001Selenium<\/td>\n<td>\u6838\u5fc3\u63a5\u53e3\u901a\u8fc7\u7387 100%\uff0c\u65e0\u529f\u80fd\u963b\u585e\u6027\u7f3a\u9677<\/td>\n<td>90% \u81ea\u52a8\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u8bc4\u5ba1\u95e8\u7981<\/td>\n<td>GitHub PR Review\u3001GitLab Merge Request<\/td>\n<td>\u81f3\u5c11 2 \u540d\u6838\u5fc3\u5f00\u53d1\u8bc4\u5ba1\u901a\u8fc7\uff0c\u4e14\u65e0\u672a\u89e3\u51b3\u7684 comment<\/td>\n<td>\u4eba\u5de5+\u5de5\u5177\u8f85\u52a9<\/td>\n<\/tr>\n<tr>\n<td>\u5b89\u5168\u626b\u63cf\u95e8\u7981<\/td>\n<td>SonarQube\uff08\u4ee3\u7801\u5b89\u5168\uff09\u3001Nessus\uff08\u6e17\u900f\u6d4b\u8bd5\uff09<\/td>\n<td>SonarQube \u65e0 Critical\/Blocker \u7ea7\u95ee\u9898\uff0c\u6e17\u900f\u6d4b\u8bd5\u65e0\u9ad8\u5371\u6f0f\u6d1e<\/td>\n<td>80% \u81ea\u52a8\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u6027\u80fd\u6d4b\u8bd5\u95e8\u7981<\/td>\n<td>JMeter\u3001Gatling<\/td>\n<td>\u63a5\u53e3\u5e73\u5747\u54cd\u5e94\u65f6\u95f4 \u2264500ms\uff0cTPS \u8fbe\u6807\uff08\u5982 \u22651000\uff09<\/td>\n<td>100% \u81ea\u52a8\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u5408\u89c4\u68c0\u67e5\u95e8\u7981<\/td>\n<td>\u81ea\u5b9a\u4e49\u811a\u672c\uff08\u5982\u9690\u79c1\u6570\u636e\u68c0\u67e5\uff09<\/td>\n<td>\u4ee3\u7801\u4e2d\u65e0\u786c\u7f16\u7801\u5bc6\u94a5\u3001\u65e0\u660e\u6587\u9690\u79c1\u6570\u636e\uff08\u5982\u624b\u673a\u53f7\uff09<\/td>\n<td>90% \u81ea\u52a8\u5316<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u7279\u6b8a\u573a\u666f<\/strong>\uff1a\u82e5\u6d4b\u8bd5\u4e2d\u53d1\u73b0\u201c\u975e\u963b\u585e\u6027\u7f3a\u9677\u201d\uff08\u5982UI\u7ec6\u8282\u95ee\u9898\uff09\uff0c\u53ef\u8bbe\u7f6e\u201c\u4eba\u5de5\u8c41\u514d\u201d\u673a\u5236\u2014\u2014\u7531\u6d4b\u8bd5\u8d1f\u8d23\u4eba\u63d0\u4ea4\u8c41\u514d\u7533\u8bf7\uff0c\u7ecf\u6280\u672f\u8d1f\u8d23\u4eba\u5ba1\u6279\u540e\u653e\u884c\uff0c\u4f46\u9700\u8bb0\u5f55\u7f3a\u9677\u8ddf\u8e2aID\uff0c\u786e\u4fdd\u540e\u7eed\u4fee\u590d\u3002<\/p>\n<h4>4. \u90e8\u7f72\u53d1\u5e03\u9636\u6bb5\uff1a\u98ce\u9669\u63a7\u5236\u95e8\u7981\uff08\u62e6\u622a\u201c\u4e0d\u9002\u5408\u90e8\u7f72\u201d\u7684\u7248\u672c\uff09<\/h4>\n<p><strong>\u6838\u5fc3\u76ee\u6807<\/strong>\uff1a\u5728\u7248\u672c\u90e8\u7f72\u5230\u751f\u4ea7\/\u9884\u53d1\u73af\u5883\u524d\uff0c\u63a7\u5236\u53d1\u5e03\u98ce\u9669\uff0c\u786e\u4fdd\u90e8\u7f72\u8fc7\u7a0b\u53ef\u56de\u6eda\u3001\u7b26\u5408\u4e1a\u52a1\u8282\u594f\uff0c\u907f\u514d\u5f71\u54cd\u7ebf\u4e0a\u670d\u52a1\u3002<br \/>\n<strong>\u89e6\u53d1\u65f6\u673a<\/strong>\uff1a\u6d4b\u8bd5\u901a\u8fc7\u540e\uff0c\u89e6\u53d1\u90e8\u7f72\u6d41\u6c34\u7ebf\u524d\uff1b\u6216\u90e8\u7f72\u8fc7\u7a0b\u4e2d\uff08\u5982\u7070\u5ea6\u9636\u6bb5\uff09\u3002<br \/>\n<strong>\u5173\u952e\u6821\u9a8c\u89c4\u5219<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>\u73af\u5883\u5339\u914d\u95e8\u7981<\/strong>\uff1a\u6821\u9a8c\u5236\u54c1\u7248\u672c\u4e0e\u76ee\u6807\u73af\u5883\u7684\u517c\u5bb9\u6027\uff08\u5982\u9884\u53d1\u73af\u5883\u4ec5\u5141\u8bb8 <code>release<\/code> \u5206\u652f\u5236\u54c1\uff0c\u751f\u4ea7\u73af\u5883\u4ec5\u5141\u8bb8 <code>tag<\/code> \u7248\u672c\u5236\u54c1\uff09\u3002<\/li>\n<li><strong>\u53d8\u66f4\u5ba1\u6279\u95e8\u7981<\/strong>\uff1a\u751f\u4ea7\u73af\u5883\u90e8\u7f72\u9700\u901a\u8fc7\u591a\u7ea7\u5ba1\u6279\uff08\u5982\u5f00\u53d1\u8d1f\u8d23\u4eba\u2192\u6d4b\u8bd5\u8d1f\u8d23\u4eba\u2192\u4ea7\u54c1\u8d1f\u8d23\u4eba\u2192\u8fd0\u7ef4\u8d1f\u8d23\u4eba\uff09\uff0c\u5ba1\u6279\u4e0d\u901a\u8fc7\u5219\u62e6\u622a\u3002<\/li>\n<li><strong>\u7070\u5ea6\u9a8c\u8bc1\u95e8\u7981<\/strong>\uff1a\u91c7\u7528\u201c\u7070\u5ea6\u53d1\u5e03\u201d\u7b56\u7565\u65f6\uff0c\u5148\u90e8\u7f72\u81f3 10% \u8282\u70b9\uff0c\u6821\u9a8c\u6838\u5fc3\u6307\u6807\uff08\u5982\u9519\u8bef\u7387\u3001\u54cd\u5e94\u65f6\u95f4\uff09\u65e0\u5f02\u5e38\u540e\uff0c\u518d\u5168\u91cf\u90e8\u7f72\uff1b\u82e5\u7070\u5ea6\u9636\u6bb5\u6307\u6807\u5f02\u5e38\uff0c\u81ea\u52a8\u56de\u6eda\u5e76\u62e6\u622a\u5168\u91cf\u3002<\/li>\n<li><strong>\u56de\u6eda\u80fd\u529b\u95e8\u7981<\/strong>\uff1a\u90e8\u7f72\u524d\u6821\u9a8c\u201c\u56de\u6eda\u5236\u54c1\u201d\u662f\u5426\u5c31\u7eea\uff08\u5982\u751f\u4ea7\u90e8\u7f72\u524d\uff0c\u786e\u8ba4\u4e0a\u4e00\u7248\u672c\u5236\u54c1\u53ef\u6b63\u5e38\u56de\u6eda\uff09\uff0c\u65e0\u56de\u6eda\u65b9\u6848\u5219\u62e6\u622a\u3002<\/li>\n<li><strong>\u4e1a\u52a1\u7a97\u53e3\u95e8\u7981<\/strong>\uff1a\u4ec5\u5141\u8bb8\u5728\u9884\u8bbe\u7684\u201c\u4e1a\u52a1\u4f4e\u5cf0\u7a97\u53e3\u201d\uff08\u5982\u51cc\u66682-4\u70b9\uff09\u90e8\u7f72\u751f\u4ea7\u73af\u5883\uff0c\u975e\u7a97\u53e3\u65f6\u95f4\u89e6\u53d1\u90e8\u7f72\u9700\u7d27\u6025\u5ba1\u6279\u3002<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b<\/strong>\uff1a\u4f7f\u7528 Jenkins + ArgoCD \u914d\u7f6e\u751f\u4ea7\u90e8\u7f72\u95e8\u7981\uff1a  <\/p>\n<ol>\n<li>\u90e8\u7f72\u524d\u68c0\u67e5\u662f\u5426\u5b58\u5728 <code>v1.2.2<\/code>\uff08\u4e0a\u4e00\u7248\u672c\uff09\u7684 Docker \u955c\u50cf\uff0c\u786e\u4fdd\u53ef\u56de\u6eda\uff1b  <\/li>\n<li>\u53d1\u9001\u5ba1\u6279\u901a\u77e5\u81f3\u201c\u751f\u4ea7\u53d1\u5e03\u5ba1\u6279\u7fa4\u201d\uff0c\u9700 3 \u4eba\u5ba1\u6279\u901a\u8fc7\uff1b  <\/li>\n<li>\u5ba1\u6279\u901a\u8fc7\u540e\uff0c\u5148\u90e8\u7f72\u81f3 2 \u53f0\u8282\u70b9\uff0810% \u6d41\u91cf\uff09\uff0c\u76d1\u63a7 10 \u5206\u949f\u65e0\u5f02\u5e38\u540e\u5168\u91cf\u3002<\/li>\n<\/ol>\n<h3>\u4e09\u3001\u95e8\u7981\u7cfb\u7edf\u7684\u6838\u5fc3\u7ec4\u4ef6\u8bbe\u8ba1<\/h3>\n<p>\u95e8\u7981\u7cfb\u7edf\u9700\u4f9d\u6258\u5de5\u5177\u94fe\u5b9e\u73b0\u201c\u89c4\u5219\u5b9a\u4e49-\u89e6\u53d1\u6267\u884c-\u7ed3\u679c\u5224\u65ad-\u62e6\u622a\/\u653e\u884c\u201d\u7684\u95ed\u73af\uff0c\u6838\u5fc3\u7ec4\u4ef6\u5305\u62ec\u4ee5\u4e0b5\u4e2a\u90e8\u5206\uff1a<\/p>\n<h4>1. \u89c4\u5219\u7ba1\u7406\u7ec4\u4ef6\uff08\u6838\u5fc3\u5927\u8111\uff09<\/h4>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u63d0\u4f9b\u53ef\u89c6\u5316\u754c\u9762\u6216\u914d\u7f6e\u6587\u4ef6\uff08\u5982 YAML\uff09\uff0c\u652f\u6301\u5b9a\u4e49\/\u7f16\u8f91\/\u5220\u9664\u95e8\u7981\u89c4\u5219\uff0c\u5305\u62ec\uff1a\n<ul>\n<li>\u89c4\u5219\u89e6\u53d1\u6761\u4ef6\uff08\u5982\u201c\u5206\u652f\u4e3a main \u65f6\u6267\u884c\u5b89\u5168\u626b\u63cf\u201d\uff09\uff1b<\/li>\n<li>\u6821\u9a8c\u6307\u6807\u4e0e\u9608\u503c\uff08\u5982\u201c\u5355\u5143\u6d4b\u8bd5\u8986\u76d6\u7387 \u226580%\u201d\uff09\uff1b<\/li>\n<li>\u5931\u8d25\u5904\u7406\u7b56\u7565\uff08\u5982\u201c\u76f4\u63a5\u62e6\u622a\u201d\/\u201c\u4eba\u5de5\u8c41\u514d\u201d\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\u5728 GitLab CI \u7684 <code>.gitlab-ci.yml<\/code> \u4e2d\u5b9a\u4e49\u6d4b\u8bd5\u95e8\u7981\u89c4\u5219\uff1a\n<pre><code class=\"language-yaml\">test_gate:\nstage: test\nscript:\n  - pytest --cov=.\/ --cov-report=xml  # \u6267\u884c\u5355\u5143\u6d4b\u8bd5\u5e76\u751f\u6210\u8986\u76d6\u7387\u62a5\u544a\n  - sonar-scanner  # \u6267\u884c\u4ee3\u7801\u5b89\u5168\u626b\u63cf\nrules:\n  - if: $CI_COMMIT_BRANCH == \"main\"  # \u4ec5 main \u5206\u652f\u89e6\u53d1\nallow_failure: false  # \u6d4b\u8bd5\u5931\u8d25\u5219\u62e6\u622a<\/code><\/pre>\n<\/li>\n<\/ul>\n<h4>2. \u6821\u9a8c\u6267\u884c\u7ec4\u4ef6\uff08\u6267\u884c\u5668\uff09<\/h4>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u5bf9\u63a5 CI\/CD \u5de5\u5177\u94fe\uff08\u5982 GitHub Actions\u3001GitLab CI\u3001Jenkins\uff09\uff0c\u6839\u636e\u89c4\u5219\u81ea\u52a8\u8c03\u7528\u7b2c\u4e09\u65b9\u5de5\u5177\uff08\u5982 SonarQube\u3001JMeter\uff09\u6267\u884c\u6821\u9a8c\uff0c\u5e76\u6536\u96c6\u7ed3\u679c\u3002<\/li>\n<li><strong>\u5173\u952e\u80fd\u529b<\/strong>\uff1a\n<ul>\n<li>\u5e76\u884c\u6267\u884c\uff1a\u652f\u6301\u591a\u7c7b\u6821\u9a8c\uff08\u5982\u5355\u5143\u6d4b\u8bd5\u3001\u5b89\u5168\u626b\u63cf\uff09\u5e76\u884c\uff0c\u51cf\u5c11\u7b49\u5f85\u65f6\u95f4\uff1b<\/li>\n<li>\u7ed3\u679c\u6807\u51c6\u5316\uff1a\u5c06\u4e0d\u540c\u5de5\u5177\u7684\u8f93\u51fa\uff08\u5982 SonarQube \u7684 JSON \u62a5\u544a\u3001JUnit \u7684 XML \u62a5\u544a\uff09\u8f6c\u6362\u4e3a\u7edf\u4e00\u683c\u5f0f\uff0c\u4fbf\u4e8e\u89c4\u5219\u5224\u65ad\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>3. \u7ed3\u679c\u5224\u65ad\u7ec4\u4ef6\uff08\u88c1\u5224\uff09<\/h4>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u6839\u636e\u201c\u89c4\u5219\u9608\u503c\u201d\u548c\u201c\u6807\u51c6\u5316\u7684\u6821\u9a8c\u7ed3\u679c\u201d\uff0c\u81ea\u52a8\u5224\u65ad\u662f\u5426\u901a\u8fc7\u95e8\u7981\uff1a\n<ul>\n<li>\u5168\u91cf\u901a\u8fc7\uff1a\u6240\u6709\u6821\u9a8c\u9879\u5747\u6ee1\u8db3\u9608\u503c\uff0c\u81ea\u52a8\u653e\u884c\u81f3\u4e0b\u6e38\u73af\u8282\uff1b<\/li>\n<li>\u90e8\u5206\u5931\u8d25\uff1a\u5b58\u5728\u4e0d\u6ee1\u8db3\u9608\u503c\u7684\u9879\uff0c\u6839\u636e\u89c4\u5219\u89e6\u53d1\u201c\u62e6\u622a\u201d\u6216\u201c\u4eba\u5de5\u8c41\u514d\u201d\uff1b<\/li>\n<li>\u5f02\u5e38\u91cd\u8bd5\uff1a\u56e0\u5de5\u5177\u6545\u969c\uff08\u5982 SonarQube \u670d\u52a1\u4e0d\u53ef\u7528\uff09\u5bfc\u81f4\u7684\u6821\u9a8c\u5931\u8d25\uff0c\u652f\u6301\u81ea\u52a8\u91cd\u8bd5\uff08\u5982\u91cd\u8bd5 3 \u6b21\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>4. \u4eba\u5de5\u5e72\u9884\u7ec4\u4ef6\uff08\u5e94\u6025\u901a\u9053\uff09<\/h4>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\u5904\u7406\u81ea\u52a8\u5316\u65e0\u6cd5\u8986\u76d6\u7684\u573a\u666f\uff08\u5982\u7d27\u6025\u7ebf\u4e0a\u4fee\u590d\u3001\u975e\u963b\u585e\u6027\u7f3a\u9677\uff09\uff0c\u63d0\u4f9b\u4eba\u5de5\u8c41\u514d\/\u5ba1\u6279\u80fd\u529b\uff1a\n<ul>\n<li>\u8c41\u514d\u7533\u8bf7\uff1a\u9700\u63d0\u4ea4\u7406\u7531\uff08\u5982\u201c\u7ebf\u4e0aP0\u6545\u969c\uff0c\u9700\u7d27\u6025\u4fee\u590d\uff0c\u6682\u8df3\u8fc7\u6027\u80fd\u6d4b\u8bd5\u201d\uff09\u3001\u5173\u8054\u7f3a\u9677ID\uff1b<\/li>\n<li>\u591a\u7ea7\u5ba1\u6279\uff1a\u6839\u636e\u98ce\u9669\u7b49\u7ea7\u8bbe\u7f6e\u5ba1\u6279\u5c42\u7ea7\uff08\u5982\u7d27\u6025\u4fee\u590d\u9700\u6280\u672f\u8d1f\u8d23\u4eba+\u8fd0\u7ef4\u8d1f\u8d23\u4eba\u53cc\u5ba1\u6279\uff09\uff1b<\/li>\n<li>\u8bb0\u5f55\u8ffd\u6eaf\uff1a\u6240\u6709\u4eba\u5de5\u64cd\u4f5c\u9700\u8bb0\u5f55\u5230\u65e5\u5fd7\uff0c\u4fbf\u4e8e\u5ba1\u8ba1\uff08\u5982\u201c2024-05-20\uff0c\u5f20\u4e09\u8c41\u514d\u4e86\u5b89\u5168\u626b\u63cf\uff0c\u7406\u7531\uff1a\u7ebf\u4e0aP0\u6545\u969c\u201d\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>5. \u65e5\u5fd7\u4e0e\u76d1\u63a7\u7ec4\u4ef6\uff08\u9ed1\u76d2\uff09<\/h4>\n<ul>\n<li><strong>\u529f\u80fd<\/strong>\uff1a\n<ul>\n<li>\u65e5\u5fd7\u8bb0\u5f55\uff1a\u8bb0\u5f55\u6bcf\u4e00\u6b21\u95e8\u7981\u7684\u89e6\u53d1\u65f6\u95f4\u3001\u89c4\u5219\u3001\u6821\u9a8c\u7ed3\u679c\u3001\u5904\u7406\u4eba\u3001\u653e\u884c\/\u62e6\u622a\u539f\u56e0\uff1b<\/li>\n<li>\u76d1\u63a7\u544a\u8b66\uff1a\u5bf9\u9ad8\u9891\u5931\u8d25\u7684\u95e8\u7981\uff08\u5982\u201c\u5355\u5143\u6d4b\u8bd5\u95e8\u7981\u8fde\u7eed\u5931\u8d255\u6b21\u201d\uff09\u89e6\u53d1\u544a\u8b66\uff0c\u63d0\u9192\u56e2\u961f\u4f18\u5316\u4ee3\u7801\u6216\u89c4\u5219\uff1b<\/li>\n<li>\u62a5\u8868\u5206\u6790\uff1a\u751f\u6210\u95e8\u7981\u901a\u8fc7\u7387\u3001\u5931\u8d25TOP\u539f\u56e0\uff08\u5982\u201c30%\u5931\u8d25\u6e90\u4e8e\u4f9d\u8d56\u6f0f\u6d1e\u201d\uff09\u7b49\u62a5\u8868\uff0c\u8f85\u52a9\u6d41\u7a0b\u4f18\u5316\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u56db\u3001\u95e8\u7981\u7cfb\u7edf\u7684\u5de5\u5177\u94fe\u9009\u578b\u5efa\u8bae<\/h3>\n<p>\u95e8\u7981\u7cfb\u7edf\u7684\u843d\u5730\u4f9d\u8d56 CI\/CD \u5de5\u5177\u94fe\u7684\u652f\u6301\uff0c\u4e0d\u540c\u89c4\u6a21\u56e2\u961f\u53ef\u9009\u62e9\u4e0d\u540c\u65b9\u6848\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u56e2\u961f\u89c4\u6a21<\/th>\n<th>\u63a8\u8350\u5de5\u5177\u94fe\u7ec4\u5408<\/th>\n<th>\u4f18\u52bf<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5c0f\u578b\u56e2\u961f\uff0810\u4eba\u5185\uff09<\/td>\n<td>GitHub Actions + SonarCloud + Dependabot<\/td>\n<td>\u96f6\u90e8\u7f72\u6210\u672c\uff0cGitHub \u751f\u6001\u65e0\u7f1d\u96c6\u6210\uff0c\u9002\u5408\u5f00\u6e90\/\u4e91\u539f\u751f\u9879\u76ee<\/td>\n<\/tr>\n<tr>\n<td>\u4e2d\u578b\u56e2\u961f\uff0810-50\u4eba\uff09<\/td>\n<td>GitLab CI + GitLab Runner + SonarQube\uff08\u81ea\u5efa\uff09 + ArgoCD<\/td>\n<td>\u4e00\u4f53\u5316\u5e73\u53f0\uff0c\u652f\u6301\u79c1\u6709\u5316\u90e8\u7f72\uff0c\u89c4\u5219\u914d\u7f6e\u7075\u6d3b<\/td>\n<\/tr>\n<tr>\n<td>\u5927\u578b\u56e2\u961f\uff0850\u4eba\u4ee5\u4e0a\uff09<\/td>\n<td>Jenkins + Kubernetes\uff08Runner \u96c6\u7fa4\uff09 + \u81ea\u7814\u89c4\u5219\u7ba1\u7406\u5e73\u53f0<\/td>\n<td>\u9ad8\u5ea6\u5b9a\u5236\u5316\uff0c\u652f\u6301\u590d\u6742\u5ba1\u6279\u6d41\u7a0b\uff0c\u9002\u5408\u591a\u9879\u76ee\/\u591a\u73af\u5883\u573a\u666f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e94\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u4f18\u5316\u65b9\u5411<\/h3>\n<ol>\n<li>\n<p><strong>\u95e8\u7981\u8fc7\u4e25\u5bfc\u81f4\u6548\u7387\u4e0b\u964d<\/strong>\uff1a  <\/p>\n<ul>\n<li>\u4f18\u5316\uff1a\u6309\u5206\u652f\u5dee\u5f02\u5316\u914d\u7f6e\uff08\u5982\u5f00\u53d1\u5206\u652f\u4ec5\u6267\u884c\u4ee3\u7801\u683c\u5f0f+\u5355\u5143\u6d4b\u8bd5\uff0c\u4e3b\u5206\u652f\u6267\u884c\u5168\u91cf\u6821\u9a8c\uff09\uff1b\u5bf9\u975e\u6838\u5fc3\u6307\u6807\uff08\u5982\u4ee3\u7801\u89c4\u8303\u7684 minor \u95ee\u9898\uff09\u8bbe\u7f6e\u201c\u8b66\u544a\u4f46\u4e0d\u62e6\u622a\u201d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4eba\u5de5\u8c41\u514d\u6ee5\u7528<\/strong>\uff1a  <\/p>\n<ul>\n<li>\u4f18\u5316\uff1a\u9650\u5236\u8c41\u514d\u6743\u9650\uff08\u5982\u4ec5\u6280\u672f\u8d1f\u8d23\u4eba\u53ef\u8c41\u514d Critical \u7ea7\u95e8\u7981\uff09\uff1b\u5b9a\u671f\u5ba1\u8ba1\u8c41\u514d\u8bb0\u5f55\uff0c\u5bf9\u9ad8\u9891\u8c41\u514d\u7684\u89c4\u5219\u8fdb\u884c\u4f18\u5316\uff08\u5982\u201c\u82e5\u6027\u80fd\u6d4b\u8bd5\u9891\u7e41\u88ab\u8c41\u514d\uff0c\u9700\u964d\u4f4e\u975e\u6838\u5fc3\u63a5\u53e3\u7684 TPS \u9608\u503c\u201d\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6821\u9a8c\u65f6\u95f4\u8fc7\u957f<\/strong>\uff1a  <\/p>\n<ul>\n<li>\u4f18\u5316\uff1a\u5e76\u884c\u6267\u884c\u6821\u9a8c\uff08\u5982\u5355\u5143\u6d4b\u8bd5\u3001\u5b89\u5168\u626b\u63cf\u3001\u4f9d\u8d56\u68c0\u67e5\u5e76\u884c\uff09\uff1b\u5bf9\u5927\u578b\u9879\u76ee\u91c7\u7528\u201c\u589e\u91cf\u6821\u9a8c\u201d\uff08\u5982\u4ec5\u626b\u63cf\u53d8\u66f4\u7684\u4ee3\u7801\u6587\u4ef6\uff0c\u800c\u975e\u5168\u91cf\u4ee3\u7801\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>\u603b\u7ed3<\/h3>\n<p>CI\/CD \u95e8\u7981\u7cfb\u7edf\u7684\u8bbe\u8ba1\u672c\u8d28\u662f\u201c\u8d28\u91cf\u4e0e\u6548\u7387\u7684\u5e73\u8861\u827a\u672f\u201d\u2014\u2014\u901a\u8fc7\u5206\u5c42\u6821\u9a8c\u8986\u76d6\u5168\u6d41\u7a0b\u98ce\u9669\uff0c\u901a\u8fc7\u81ea\u52a8\u5316\u51cf\u5c11\u4eba\u5de5\u5e72\u9884\uff0c\u901a\u8fc7\u53ef\u914d\u7f6e\u6027\u9002\u914d\u4e0d\u540c\u573a\u666f\u3002\u843d\u5730\u65f6\u9700\u4ece\u201c\u6700\u5c0f\u53ef\u7528\u201d\u5f00\u59cb\uff08\u5982\u5148\u5b9e\u73b0\u4ee3\u7801\u63d0\u4ea4+\u5355\u5143\u6d4b\u8bd5\u95e8\u7981\uff09\uff0c\u518d\u9010\u6b65\u8fed\u4ee3\u5b8c\u5584\uff08\u5982\u589e\u52a0\u5b89\u5168\u626b\u63cf\u3001\u7070\u5ea6\u9a8c\u8bc1\u95e8\u7981\uff09\uff0c\u6700\u7ec8\u5f62\u6210\u201c\u81ea\u52a8\u5316\u4e3a\u4e3b\u3001\u4eba\u5de5\u4e3a\u8f85\u201d\u7684\u7a33\u5b9a\u9632\u5fa1\u4f53\u7cfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 CI\/CD \u6d41\u7a0b\u4e2d\uff0c\u95e8\u7981\u7cfb\u7edf\uff08Gate System\uff09 \u662f\u4fdd\u969c\u4ee3\u7801\u8d28\u91cf\u3001\u5b89\u5168\u5408\u89c4\u548c\u4ea4\u4ed8\u7a33\u5b9a\u6027\u7684\u6838\u5fc3\u673a\u5236\uff0c\u5176&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/t.n-years.com\/?p=6883\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-6883","post","type-post","status-publish","format-standard","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/6883","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6883"}],"version-history":[{"count":1,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/6883\/revisions"}],"predecessor-version":[{"id":6884,"href":"https:\/\/t.n-years.com\/index.php?rest_route=\/wp\/v2\/posts\/6883\/revisions\/6884"}],"wp:attachment":[{"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6883"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/t.n-years.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}