更新 Jenkinsfile
依赖脚本
This commit is contained in:
parent
6afc76faba
commit
d371093c42
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -14,7 +14,12 @@ pipeline {
|
|||||||
|
|
||||||
stage('安装依赖') {
|
stage('安装依赖') {
|
||||||
steps {
|
steps {
|
||||||
sh 'npm install'
|
ssh '''
|
||||||
|
# 清理缓存和旧依赖
|
||||||
|
rm -rf node_modules package-lock.json
|
||||||
|
# 重新安装依赖
|
||||||
|
npm install --registry=https://registry.npmmirror.com # 使用国内源加速
|
||||||
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user