提交jenkins自动化流水线

This commit is contained in:
Home
2026-03-28 23:24:58 +08:00
parent 6f8a692f2c
commit 9b9a3f6211
Vendored
+5 -2
View File
@@ -25,8 +25,11 @@ pipeline {
}
stage('安装依赖') {
steps {
sh 'npm install @dcloudio/uts-linux-x64-gnu'
sh 'npm install'
echo "清理旧依赖"
sh "rm -rf node_modules package-lock.json"
echo "✅ 安装 UniApp 依赖(忽略平台+开权限+强制)"
sh "npm install --force --unsafe-perm --ignore-platform"
}
}
stage('打包uniapp') {