更新 Jenkinsfile
This commit is contained in:
parent
4fe6b28e81
commit
4da33e787a
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -22,13 +22,7 @@ pipeline {
|
||||
sh '''
|
||||
rm -rf node_modules package-lock.json
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 检查并移除恶意依赖
|
||||
if grep -q "vab-contextmenu" package.json; then
|
||||
echo "发现恶意依赖vab-contextmenu,正在移除..."
|
||||
npm uninstall vab-contextmenu
|
||||
fi
|
||||
|
||||
|
||||
# 安装其他依赖
|
||||
npm install
|
||||
'''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user