更新 Jenkinsfile
This commit is contained in:
parent
4da33e787a
commit
8dddbb730b
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -20,7 +20,11 @@ pipeline {
|
|||||||
stage('安装依赖') {
|
stage('安装依赖') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
echo "清理旧依赖..."
|
||||||
rm -rf node_modules package-lock.json
|
rm -rf node_modules package-lock.json
|
||||||
|
npm cache clean --force
|
||||||
|
|
||||||
|
echo "设置国内镜像源加速..."
|
||||||
npm config set registry https://registry.npmmirror.com
|
npm config set registry https://registry.npmmirror.com
|
||||||
|
|
||||||
# 安装其他依赖
|
# 安装其他依赖
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user