{"id":49995,"date":"2025-07-30T20:52:28","date_gmt":"2025-07-30T12:52:28","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/49995.html"},"modified":"2025-07-30T20:52:28","modified_gmt":"2025-07-30T12:52:28","slug":"%e5%9f%ba%e4%ba%8e-jenkins-%e7%9a%84%e4%bc%81%e4%b8%9a%e7%ba%a7-ci-cd-%e6%b5%81%e6%b0%b4%e7%ba%bf%e5%ae%9e%e6%88%98%ef%bc%9adev-%e5%88%86%e6%94%af%e7%9b%91%e5%90%ac-%e2%86%92-%e7%a7%92%e7%ba%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/49995.html","title":{"rendered":"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>1\u3001\u524d\u8a00<\/li>\n<li>2\u3001\u64cd\u4f5c\u6b65\u9aa4<\/li>\n<li>\n<ul>\n<li>2.1 Jenkins\u4efb\u52a1\u7684\u521b\u5efa\u4e0e\u914d\u7f6e<\/li>\n<li>2.2 Pipeline script<\/li>\n<\/ul>\n<\/li>\n<li>\u53c2\u8003\u94fe\u63a5<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>1\u3001\u524d\u8a00<\/h3>\n<p>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d&#xff0c;\u6709\u65f6\u5019\u6211\u4eec\u53ef\u80fd\u9700\u8981\u76d1\u6d4b git \u4ed3\u5e93\u7684\u67d0\u4e2a\u5206\u652f&#xff0c;\u5982\u82e5\u8fd9\u4e2a\u5206\u652f\u53d1\u751f\u4e86\u63d0\u4ea4&#xff0c;\u7136\u540e\u5c31\u8981 \u62c9\u53d6\u4ee3\u7801\u3001\u6784\u5efa\u3001\u53d1\u9001\u5230\u670d\u52a1\u5668\u3001\u53d1\u9001\u9489\u9489\u901a\u77e5\u3001\u53d1\u9001\u90ae\u4ef6\u7b49\u64cd\u4f5c&#xff0c;\u8fd9\u4e2a\u65f6\u5019\u5c31\u9700\u8981\u7528\u5230 Jenkins\u7684 \u6d41\u6c34\u7ebf\u4efb\u52a1\u4e86\u3002<\/p>\n<p>Jenkins\u4efb\u52a1\u4e00\u5171\u4e94\u4e2a\u7c7b\u578b&#xff0c;\u6700\u5f00\u59cb\u7684\u6587\u7ae0\u4f7f\u7528\u7684\u662f \u3010\u6784\u5efa\u4e00\u4e2a\u81ea\u7531\u98ce\u683c\u7684\u8f6f\u4ef6\u9879\u76ee\u3011&#xff0c;\u8fd9\u7bc7\u6587\u7ae0\u4f7f\u7528\u7684\u662f \u3010\u6d41\u6c34\u7ebf\u3011<\/p>\n<h3>2\u3001\u64cd\u4f5c\u6b65\u9aa4<\/h3>\n<h4>2.1 Jenkins\u4efb\u52a1\u7684\u521b\u5efa\u4e0e\u914d\u7f6e<\/h4>\n<p>1\u3001\u70b9\u51fb\u65b0\u5efa\u4efb\u52a1 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125218-688a158238d79.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>2\u3001\u8f93\u5165\u4e00\u4e2a\u4efb\u52a1\u540d\u79f0&#xff0c;\u7136\u540e\u9009\u62e9 \u6d41\u6c34\u7ebf <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125218-688a15827f44f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>3\u3001\u5904\u7406\u4e00\u7cfb\u5217\u914d\u7f6e <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125218-688a1582bf487.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u89e6\u53d1\u5668&#xff1a;\u9009\u62e9\u8fd9\u4e2a gitee webhook \u89e6\u53d1\u6784\u5efa<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125219-688a15838aabd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f46\u662f\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d&#xff0c;\u4e0d\u9700\u8981\u8fd9\u6837&#xff0c;\u4e00\u822c\u90fd\u662f\u6307\u5b9a\u5206\u652f&#xff0c;\u6bd4\u5982&#xff0c;\u6211\u4eec\u73b0\u5728\u4f7f\u7528\u7684\u662f dev \u5206\u652f<\/p>\n<p>\u4e00\u822c\u6765\u8bf4&#xff0c;\u5f00\u53d1\u73af\u5883\u3001\u6d4b\u8bd5\u73af\u5883\u3001\u751f\u4ea7\u73af\u5883&#xff0c;\u524d\u7aef\u754c\u9762\u5bf9\u5e94\u7684\u670d\u52a1\u5668\u8def\u5f84\u80af\u5b9a\u4e0d\u662f\u4e00\u4e2a&#xff0c;\u6240\u4ee5\u8fd9\u6837\u4e00\u822c\u76d1\u542c\u4e00\u4e2a\u5206\u652f\u5c31\u591f\u4e86&#xff0c;\u6bcf\u4e2a\u73af\u5883\u90fd\u521b\u5efa\u4e00\u4e2a\u5355\u72ec\u7684\u6d41\u6c34\u7ebf\u4efb\u52a1\u6bd4\u8f83\u597d&#xff0c;\u5982\u82e5\u4e09\u4e2a\u73af\u5883\u7528\u4e00\u4e2a&#xff0c;\u90a3\u4e48\u5c31\u5f97\u5728\u6d41\u6c34\u7ebf\u4ee3\u7801\u91cc\u9762\u533a\u5206\u5f53\u524d\u662f\u90a3\u4e2a\u5206\u652f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125220-688a158477d7e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e0b\u9762\u6709\u4e00\u4e2a \u3010Gitee WebHook \u5bc6\u7801\u3011&#xff0c;\u70b9\u51fb\u540e\u9762\u7684\u751f\u6210 \u70b9\u51fb\u751f\u6210\u4ee5\u540e&#xff0c;\u9700\u8981\u53bbgitee \u4e0a&#xff0c;\u7b2c\u4e00\u5927\u6b65\u9aa4\u521b\u5efa\u7684\u4ed3\u5e93\u4e2d\u53bb\u914d\u7f6e\u4ee5\u4e0b<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125221-688a15856bf9c.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125222-688a1586002eb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125223-688a158720c0e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u70b9\u51fb\u3010\u6dfb\u52a0\u3011<\/p>\n<hr \/>\n<p>\u6d41\u6c34\u7ebf\u8fd9\u91cc&#xff0c;\u662f\u6709\u4e24\u79cd\u65b9\u5f0f\u7684 1\u3001\u4f7f\u7528 \u3010Pipeline script\u3011&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u518d\u4e0b\u9762\u8fd9\u4e2a\u6846\u91cc\u9762\u5199\u811a\u672c&#xff0c;\u8fd9\u6837\u522b\u4eba\u5c31\u4e0d\u4f1a\u770b\u5230\u4e86 2\u3001\u4f7f\u7528\u3010Pipeline script from SCM\u3011&#xff0c;\u4f1a\u5f39\u51fa\u4e00\u4e2a\u811a\u672c\u8def\u5f84 \u8f93\u5165\u6846&#xff0c;\u5982\u82e5\u9009\u62e9\u8fd9\u4e2a&#xff0c;\u90a3\u5c31\u662f\u8981\u518d\u524d\u7aef\u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a Jenkinsfile&#xff0c;\u652f\u6301\u91cd\u547d\u540d&#xff0c;\u4e5f\u652f\u6301\u81ea\u5b9a\u4e49\u8def\u5f84&#xff0c;\u4f46\u662f\u4e00\u822c\u9ed8\u8ba4\u5c31\u597d<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125223-688a158794d6e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5177\u4f53\u7684\u4ee3\u7801\u89c1\u4e0b\u4e00\u4e2a\u7ae0\u8282<\/p>\n<h4>2.2 Pipeline script<\/h4>\n<ul>\n<li>\u5728\u5b89\u88c5Jenkins\u7684\u65f6\u5019&#xff0c;\u8981\u9009\u62e9 \u63a8\u8350\u7684\u63d2\u4ef6&#xff0c;\u5177\u4f53\u53ef\u4ee5\u770b\u8fd9\u4e2a\u6587\u7ae0 jenkins \u5b89\u88c5\u6559\u7a0b&#xff0c;SSH \u914d\u7f6e\u4e5f\u5728\u8fd9\u4e2a\u6587\u7ae0\u91cc\u9762&#xff0c;\u53ef\u4ee5\u5148\u770b\u770b\u8fd9\u4e2a&#xff0c;\u4e0d\u7136 \u6253\u5305\u540e\u7684\u6587\u4ef6\u6709\u53ef\u80fd\u65e0\u6cd5\u53d1\u9001\u5230\u670d\u52a1\u5668\u4e0a<\/li>\n<li>\u5fc5\u987b\u8981\u5b89\u88c5 SSH\u3001\u914d\u7f6e\u5b8c\u6210SSH&#xff0c;\u4e0d\u7136\u6253\u5305\u4ee5\u540e\u7684\u6587\u4ef6&#xff0c;\u65e0\u6cd5\u53d1\u9001\u5230\u670d\u52a1\u5668\u4e0a<\/li>\n<li>\u5982\u82e5\u60f3\u8981\u6253\u5305\u5b8c\u6210\u540e\u6216\u8005\u5176\u4ed6\u60c5\u51b5&#xff0c;\u7ed9\u67d0\u4e9b\u4eba\u53d1\u9001\u90ae\u4ef6\u9700\u8981\u8fd9\u4e2a\u63d2\u4ef6Email Extension Plugin&#xff0c;\u5728Jenkins\u7b2c\u4e00\u6b21\u63a8\u8350\u5b89\u88c5\u4e2d&#xff0c;\u4e5f\u6709\u8fd9\u4e2a&#xff0c; \u5177\u4f53\u7684\u8fd9\u4e2a\u63d2\u4ef6\u914d\u7f6e\u53ef\u4ee5\u770b\u8fd9\u4e2a\u6587\u7ae0 \u300aJenkins\u90ae\u4ef6\u901a\u77e5\u7ec8\u6781\u6307\u5357&#xff1a;Email Extension Plugin\u9ad8\u7ea7\u914d\u7f6e\u300b<\/li>\n<\/ul>\n<p>SSH \u6709\u4e00\u70b9\u9700\u8981\u6ce8\u610f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125223-688a1587c3df2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<hr \/>\n<p>SSH&#xff1a;SSH&#xff08;Secure Shell&#xff09;\u662f\u4e00\u79cd \u52a0\u5bc6\u7684\u7f51\u7edc\u534f\u8bae&#xff0c;\u4e3b\u8981\u7528\u4e8e \u5b89\u5168\u5730\u8fdc\u7a0b\u8bbf\u95ee\u548c\u7ba1\u7406\u670d\u52a1\u5668&#xff0c;\u4ee5\u53ca \u5b89\u5168\u5730\u4f20\u8f93\u6587\u4ef6<\/p>\n<p>pipeline <span class=\"token punctuation\">{<\/span><br \/>\n    agent any<br \/>\n    options <span class=\"token punctuation\">{<\/span><br \/>\n        timestamps<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span>  \/\/ \u4e3a\u6574\u4e2a Pipeline \u7684\u6240\u6709\u6b65\u9aa4\u6dfb\u52a0\u65f6\u95f4\u6233<br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    tools <span class=\"token punctuation\">{<\/span><br \/>\n        nodejs <span class=\"token string\">&#039;v22.14.0&#039;<\/span>  \/\/ \u4e0e\u5168\u5c40\u914d\u7f6e\u4e2d\u7684 Name \u4e00\u81f4<br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    stages <span class=\"token punctuation\">{<\/span><br \/>\n        stage<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u62c9\u53d6\u4ee3\u7801&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            steps <span class=\"token punctuation\">{<\/span><br \/>\n            \/\/ \u2018checkout scm\u2019 is only available when using \u201c\u591a\u5206\u652f\u6d41\u6c34\u7ebf\u201d or \u201cPipeline script from SCM\u201d &#xff0c;checkout scm\u8fd9\u4e2a\u547d\u4ee4\u9002\u7528\u4e8e \u591a\u5206\u679d\u6d41\u6c34\u7ebf\u4efb\u52a1 \u6216\u8005  Pipeline script from SCM &#xff0c;\u591a\u5206\u679d\u6d41\u6c34\u7ebf\u4efb\u52a1\u53ef\u4ee5\u53e6\u4e00\u4e2a\u6587\u7ae0&#xff0c;\u5728\u6700\u540e\u6709\u53c2\u8003\u94fe\u63a5<br \/>\n                \/\/ checkout scm  \/\/ \u62c9\u53d6\u4ee3\u7801<br \/>\n                <span class=\"token function\">git<\/span> branch: <span class=\"token string\">&#039;dev&#039;<\/span>, url: <span class=\"token string\">&#039;https:\/\/gitee.com\/\u6362\u6210\u4f60\u81ea\u5df1\u7684&#039;<\/span><br \/>\n                <span class=\"token function\">sh<\/span> <span class=\"token string\">&#039;ls -al&#039;<\/span>  \/\/ \u68c0\u67e5\u4ee3\u7801\u662f\u5426\u62c9\u53d6\u6210\u529f<br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        stage<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u521d\u59cb\u5316&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            steps <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:git\u672c\u6b21\u63d0\u4ea4\u7684hash <span class=\"token variable\">${env.GIT_COMMIT}<\/span>&#034;<\/span><br \/>\n                <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:\u672c\u6b21\u6784\u5efaID <span class=\"token variable\">${env.BUILD_ID}<\/span>&#034;<\/span><br \/>\n                <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:\u672c\u6b21\u6784\u5efa\u540d\u79f0 <span class=\"token variable\">${env.JOB_NAME}<\/span>&#034;<\/span><br \/>\n                <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:\u672c\u6b21\u6784\u5efaURL <span class=\"token variable\">${env.BUILD_URL}<\/span>&#034;<\/span><br \/>\n                script <span class=\"token punctuation\">{<\/span><br \/>\n                    def nodeVersion <span class=\"token operator\">&#061;<\/span> sh<span class=\"token punctuation\">(<\/span>script: <span class=\"token string\">&#039;node &#8211;version&#039;<\/span>, returnStdout: <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">)<\/span>.trim<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:node\u7248\u672c\u53f7: <span class=\"token variable\">${nodeVersion}<\/span>&#034;<\/span><br \/>\n                    def nodeRegistryUrl <span class=\"token operator\">&#061;<\/span> sh<span class=\"token punctuation\">(<\/span>script: <span class=\"token string\">&#039;npm config get registry&#039;<\/span>, returnStdout: <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">)<\/span>.trim<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:node\u4e0b\u8f7d\u6e90: <span class=\"token variable\">${nodeRegistryUrl}<\/span>&#034;<\/span><br \/>\n                    <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u521d\u59cb\u5316:\u5f53\u524dgit\u5206\u652f: <span class=\"token variable\">${env.BRANCH_NAME}<\/span>&#034;<\/span><br \/>\n                <span class=\"token punctuation\">}<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        stage<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u5b89\u88c5\u4f9d\u8d56&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            steps <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u5b89\u88c5\u4f9d\u8d56:\u5f00\u59cb\u5b89\u88c5\u4f9d\u8d56&#034;<\/span><br \/>\n                <span class=\"token function\">sh<\/span> <span class=\"token string\">&#039;npm i&#039;<\/span><br \/>\n                <span class=\"token function\">sh<\/span> <span class=\"token string\">&#039;npm run build&#039;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        stage<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u6784\u5efa&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            steps <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token builtin class-name\">echo<\/span> <span class=\"token string\">&#034;\u6784\u5efa:\u5f00\u59cb\u6784\u5efa&#034;<\/span><br \/>\n                <span class=\"token function\">sh<\/span> <span class=\"token string\">&#039;npm run build&#039;<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n        stage<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\u53d1\u9001\u5230\u670d\u52a1\u5668&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            steps <span class=\"token punctuation\">{<\/span><br \/>\n                script <span class=\"token punctuation\">{<\/span><br \/>\n                    \/\/ \u4f7f\u7528 Publish Over SSH \u63d2\u4ef6\u4f20\u8f93\u6587\u4ef6<br \/>\n                    sshPublisher<span class=\"token punctuation\">(<\/span><br \/>\n                        publishers: <span class=\"token punctuation\">[<\/span><br \/>\n                            sshPublisherDesc<span class=\"token punctuation\">(<\/span><br \/>\n                                configName: <span class=\"token string\">&#034;\u5446\u5446\u72d7&#034;<\/span>,<br \/>\n                                transfers: <span class=\"token punctuation\">[<\/span><br \/>\n                                    sshTransfer<span class=\"token punctuation\">(<\/span><br \/>\n                                        sourceFiles: <span class=\"token string\">&#039;dist\/**&#039;<\/span>,  \/\/ \u524d\u7aef\u6253\u5305\u540e\u7684\u76ee\u5f55<br \/>\n                                        removePrefix: <span class=\"token string\">&#039;dist&#039;<\/span>,    \/\/ \u79fb\u9664 dist \u524d\u7f00<br \/>\n                                        remoteDirectory: <span class=\"token string\">&#034;project\/jenkinsPipelineTest\/&#034;<\/span>,<br \/>\n                                        execCommand: <span class=\"token string\">&#034;&#034;<\/span>&#034;<\/p>\n<p>                                        <span class=\"token string\">&#034;&#034;<\/span>&#034;<br \/>\n                                    <span class=\"token punctuation\">)<\/span><br \/>\n                                <span class=\"token punctuation\">]<\/span><br \/>\n                            <span class=\"token punctuation\">)<\/span><br \/>\n                        <span class=\"token punctuation\">]<\/span><br \/>\n                    <span class=\"token punctuation\">)<\/span><br \/>\n                <span class=\"token punctuation\">}<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    post <span class=\"token punctuation\">{<\/span><br \/>\n        always <span class=\"token punctuation\">{<\/span><br \/>\n            script <span class=\"token punctuation\">{<\/span><br \/>\n                \/\/ \u8ba1\u7b97\u6784\u5efa\u8017\u65f6&#xff08;\u79d2&#xff09;<br \/>\n                def durationSec <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>currentBuild.duration \/ <span class=\"token number\">1000<\/span><span class=\"token punctuation\">)<\/span>.toInteger<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                \/\/ \u683c\u5f0f\u5316\u65f6\u95f4<br \/>\n                def timeFormat <span class=\"token operator\">&#061;<\/span> new java.text.SimpleDateFormat<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;yyyy-MM-dd HH:mm:ss&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n                def startTime <span class=\"token operator\">&#061;<\/span> timeFormat.format<span class=\"token punctuation\">(<\/span>new Date<span class=\"token punctuation\">(<\/span>currentBuild.startTimeInMillis<span class=\"token punctuation\">))<\/span><\/p>\n<p>                emailext<span class=\"token punctuation\">(<\/span><br \/>\n                    subject: <span class=\"token string\">&#034;\u6784\u5efa\u901a\u77e5: <span class=\"token variable\">${env.JOB_NAME}<\/span> &#8211; <span class=\"token variable\">${currentBuild.result}<\/span>&#034;<\/span>,<br \/>\n                    body: <span class=\"token string\">&#034;&#034;<\/span>&#034;<br \/>\n                        <span class=\"token operator\">&lt;<\/span>h<span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\u6784\u5efa\u8be6\u60c5<span class=\"token operator\">&lt;<\/span>\/h<span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span><br \/>\n                        <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>b<span class=\"token operator\">&gt;<\/span>\u9879\u76ee:<span class=\"token operator\">&lt;<\/span>\/b<span class=\"token operator\">&gt;<\/span> <span class=\"token variable\">${env.JOB_NAME}<\/span><span class=\"token operator\">&lt;<\/span>\/p<span class=\"token operator\">&gt;<\/span><br \/>\n                        <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>b<span class=\"token operator\">&gt;<\/span>\u72b6\u6001:<span class=\"token operator\">&lt;<\/span>\/b<span class=\"token operator\">&gt;<\/span> <span class=\"token variable\">${currentBuild.result ?<span class=\"token operator\">:<\/span> &#039;SUCCESS&#039;}<\/span><span class=\"token operator\">&lt;<\/span>\/p<span class=\"token operator\">&gt;<\/span><br \/>\n                        <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>b<span class=\"token operator\">&gt;<\/span>\u5206\u652f:<span class=\"token operator\">&lt;<\/span>\/b<span class=\"token operator\">&gt;<\/span> <span class=\"token variable\">${env.GIT_BRANCH}<\/span><span class=\"token operator\">&lt;<\/span>\/p<span class=\"token operator\">&gt;<\/span><br \/>\n                        <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>b<span class=\"token operator\">&gt;<\/span>\u5f00\u59cb\u65f6\u95f4:<span class=\"token operator\">&lt;<\/span>\/b<span class=\"token operator\">&gt;<\/span> <span class=\"token variable\">${startTime}<\/span><span class=\"token operator\">&lt;<\/span>\/p<span class=\"token operator\">&gt;<\/span><br \/>\n                        <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>b<span class=\"token operator\">&gt;<\/span>\u6784\u5efa\u8017\u65f6:<span class=\"token operator\">&lt;<\/span>\/b<span class=\"token operator\">&gt;<\/span> <span class=\"token variable\">${durationSec}<\/span> \u79d2<span class=\"token operator\">&lt;<\/span>\/p<span class=\"token operator\">&gt;<\/span><br \/>\n                        <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>b<span class=\"token operator\">&gt;<\/span>\u65e5\u5fd7\u94fe\u63a5:<span class=\"token operator\">&lt;<\/span>\/b<span class=\"token operator\">&gt;<\/span> <span class=\"token operator\">&lt;<\/span>a <span class=\"token assign-left variable\">href<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;<span class=\"token variable\">${env.BUILD_URL}<\/span>console&#034;<\/span><span class=\"token operator\">&gt;<\/span>\u70b9\u51fb\u67e5\u770b<span class=\"token operator\">&lt;<\/span>\/a<span class=\"token operator\">&gt;<\/span><span class=\"token operator\">&lt;<\/span>\/p<span class=\"token operator\">&gt;<\/span><br \/>\n                    <span class=\"token string\">&#034;&#034;<\/span>&#034;,<br \/>\n                    to: <span class=\"token string\">&#039;\u6362\u6210\u9700\u8981\u63a5\u6536\u90ae\u4ef6\u7684\u90ae\u7bb1&#xff0c;\u591a\u4e2a\u90ae\u7bb1\u7684\u8bdd&#xff0c;\u9017\u53f7\u5206\u9694&#039;<\/span>,<br \/>\n                    attachLog: true,<br \/>\n                    mimeType: <span class=\"token string\">&#039;text\/html&#039;<\/span><br \/>\n                <span class=\"token punctuation\">)<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5f04\u5b8c\u4ee5\u540e\u70b9\u51fb\u4fdd\u5b58&#xff0c;\u8fd9\u4e2a\u65f6\u5019\u53ef\u4ee5\u9009\u62e9\u7acb\u5373\u6784\u5efa <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125225-688a158932dde.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125225-688a158978f48.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125226-688a158ae4191.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u6837\u5c31\u662fi\u6210\u529f\u4e86\u3002\u53ef\u4ee5\u81ea\u5df1 push \u4ee3\u7801\u4e86&#xff0c;\u7136\u540eJenkins\u5c31\u4f1a\u68c0\u6d4b\u5230&#xff0c;\u81ea\u52a8\u6784\u5efa\u6253\u5305<\/p>\n<h3>\u53c2\u8003\u94fe\u63a5<\/h3>\n<ul>\n<li>\u4f7f\u7528 Docker&#043;Jenkins&#043;Jenkins &#043; gitee \u5b9e\u73b0\u81ea\u52a8\u5316\u90e8\u7f72\u524d\u7aef\u9879\u76ee CI\/CD&#xff08;centos7\u4e3a\u4f8b&#xff09;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e51\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b_jenkins \u76d1\u542c\u67d0\u4e2a\u5206\u652f\u63d0\u4ea4<\/p>\n","protected":false},"author":2,"featured_media":49982,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[597,27,392,87,61,43,44],"topic":[],"class_list":["post-49995","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ci-cd","tag-docker","tag-jenkins","tag-87","tag-61","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/49995.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e51\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b_jenkins \u76d1\u542c\u67d0\u4e2a\u5206\u652f\u63d0\u4ea4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/49995.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T12:52:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125218-688a158238d79.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/49995.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/49995.html\",\"name\":\"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T12:52:28+00:00\",\"dateModified\":\"2025-07-30T12:52:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/49995.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/49995.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/49995.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/49995.html","og_locale":"zh_CN","og_type":"article","og_title":"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.4k\u6b21\uff0c\u70b9\u8d5e51\u6b21\uff0c\u6536\u85cf15\u6b21\u3002\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b_jenkins \u76d1\u542c\u67d0\u4e2a\u5206\u652f\u63d0\u4ea4","og_url":"https:\/\/www.wsisp.com\/helps\/49995.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T12:52:28+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250730125218-688a158238d79.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/49995.html","url":"https:\/\/www.wsisp.com\/helps\/49995.html","name":"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T12:52:28+00:00","dateModified":"2025-07-30T12:52:28+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/49995.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/49995.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/49995.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u57fa\u4e8e Jenkins \u7684\u4f01\u4e1a\u7ea7 CI\/CD \u6d41\u6c34\u7ebf\u5b9e\u6218\uff1aDev \u5206\u652f\u76d1\u542c \u2192 \u79d2\u7ea7\u6784\u5efa \u2192 \u5b89\u5168\u63a8\u9001\u670d\u52a1\u5668 \u2192 \u90ae\u4ef6\u901a\u77e5\u300b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/49995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=49995"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/49995\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/49982"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=49995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=49995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=49995"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=49995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}