jenkns中打包前端项目shell命令
BUILD_VERSION="${BUILD_DATE_FORMATTED,"yyyyMMdd"}.${BUILDS_TODAY}"
打包前端项目:
APP_NAME="wes-admin-static"node -v
npm -v
npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver
npm install --registry=https://registry.npm.taobao.org
npm run build
cp -r dist ${BUILD_VERSION}
cd ${BUILD_VERSION}
tar cvf ${APP_NAME}.${BUILD_VERSION}.tar.gz *
cp ${APP_NAME}.${BUILD_VERSION}.tar.gz /data/builds/${APP_NAME}/
cd /data/builds/${APP_NAME}/
ln -fs ${APP_NAME}.${BUILD_VERSION}.tar.gz current
以上是 jenkns中打包前端项目shell命令 的全部内容, 来源链接: utcz.com/z/518499.html