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

vue

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

以上是 vue + jenkins 自动部署到指定的目录 的全部内容, 来源链接: utcz.com/z/378081.html

回到顶部