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/指定目录

posted @ 2019-07-30 16:36  巴黎爱工作  阅读(1383)  评论(0编辑  收藏  举报