更新 Jenkinsfile
修正jenkins部署代码
This commit is contained in:
parent
d13e30369c
commit
79989085d8
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -24,8 +24,7 @@ pipeline {
|
|||||||
rm -rf node_modules package-lock.json
|
rm -rf node_modules package-lock.json
|
||||||
npm cache clean --force
|
npm cache clean --force
|
||||||
|
|
||||||
echo "设置国内镜像源加速..."
|
echo "设置国内腾讯云镜像源加速..."
|
||||||
# npm config set registry https://registry.npmmirror.com
|
|
||||||
npm config set registry https://mirrors.cloud.tencent.com/npm/
|
npm config set registry https://mirrors.cloud.tencent.com/npm/
|
||||||
|
|
||||||
# 安装其他依赖
|
# 安装其他依赖
|
||||||
@ -46,7 +45,7 @@ pipeline {
|
|||||||
# 公共部署逻辑(创建目录、清理、复制)
|
# 公共部署逻辑(创建目录、清理、复制)
|
||||||
mkdir -p ${DEPLOY_DIR}
|
mkdir -p ${DEPLOY_DIR}
|
||||||
rm -rf ${DEPLOY_DIR}/*
|
rm -rf ${DEPLOY_DIR}/*
|
||||||
cp -r dist/* ${DEPLOY_DIR}/
|
cp -r admin/* ${DEPLOY_DIR}/
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user