Jenkins构建ant-design-pro项目
选择 Freestyle project
构建
执行 Shell
pwd
git checkout develop
git pull
cd ..
tar -zcf prod_frontend.tar.gz ./prod_frontend --exclude *.tar.gz
mv prod_frontend.tar.gz ./prod_frontend/
构建后操作
Send build artifacts over SSH
Transfer Source files
: **/prod_frontend.tar.gz
Exec command
:
tar -zxf prod_frontend.tar.gz
cd ./prod_frontend
cd ./merchant
yarn
yarn build
rm -rf ../deploy/merchant
mv merchant ../deploy/
cd ..
cd ./management
yarn
yarn build
rm -rf ../deploy/management
mv management ../deploy/
cd ..
cd ./deploy
pwd
yarn
yarn pm2
yarn pm2-manage
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/24/jenkins-builds-ant-design-pro-project/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
1
二维码
打赏
海报
Jenkins构建ant-design-pro项目
选择 Freestyle project
构建
执行 Shell
pwd
git checkout develop
git pull
cd ..
tar -zcf prod_frontend.tar.gz ./prod_frontend --exclude *.tar.gz
mv ……
文章目录
关闭
共有 0 条评论