{"id":1475,"date":"2023-03-24T22:32:09","date_gmt":"2023-03-24T14:32:09","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1475"},"modified":"2023-04-28T20:33:09","modified_gmt":"2023-04-28T12:33:09","slug":"jenkins-builds-vue-project","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/24\/jenkins-builds-vue-project\/","title":{"rendered":"Jenkins\u6784\u5efavue\u9879\u76ee"},"content":{"rendered":"<h2>\u9009\u62e9 Freestyle project<\/h2>\n<h2>\u6784\u5efa<\/h2>\n<h3>\u6267\u884c Shell<\/h3>\n<p><!-- more --><\/p>\n<pre><code>pwd\ngit checkout develop\ngit pull\ncd ..\ntar -zcf prod_mall.tar.gz .\/prod_mall --exclude *.tar.gz\nmv prod_mall.tar.gz .\/prod_mall\/<\/code><\/pre>\n<h2>\u6784\u5efa\u540e\u64cd\u4f5c<\/h2>\n<h3>Send build artifacts over SSH<\/h3>\n<p><code>Transfer Source files<\/code>: <code>**\/prod_mall.tar.gz<\/code><br \/>\n<code>Exec command<\/code>:<\/p>\n<pre><code>tar -zxf prod_mall.tar.gz\ncd .\/prod_mall\npwd\nnpm i\nnpm run build\nnpm run pm2<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9009\u62e9 Freestyle project \u6784\u5efa \u6267\u884c Shell pwd git checkout devel [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[229,35],"tags":[363],"class_list":["post-1475","post","type-post","status-publish","format-standard","hentry","category-jenkins","category-vue","tag-vue"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1475","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1475"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1475\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}