vue + jenkins 自动部署到指定的目录


1. 首先选择自由风的构建方式

2. 我的源码在gitlab上,在源码管理下,提供仓库URL和凭证,以及gitlab的分支

3. 在构建环境下选择提供Node &npm bin/folder to Path

 

4. 构建 执行shell

node -v
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm -v
cnpm install
cnpm run build
cp -R dist /opt/指定目录


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM