From 9b9a3f6211c07793c597be9bf088cbbe7e60f69a Mon Sep 17 00:00:00 2001 From: Home Date: Sat, 28 Mar 2026 23:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4jenkins=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=81=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 94aecf53..7c9103d2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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') {