From 7b877149873d140f36e5232ab0b36af6d573767c Mon Sep 17 00:00:00 2001 From: Home Date: Sat, 28 Mar 2026 21:51:19 +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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index eb2db15f..4aac649a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,13 @@ pipeline { rm -rf android/simpleDemo/build/ ''' } + } + stage('修复npm环境') { + steps { + sh ''' + npm config set prefix $WORKSPACE/.npm-global + ''' + } } stage('安装依赖') { steps { @@ -29,7 +36,7 @@ pipeline { } stage('打包uniapp') { steps { - sh 'npm run build:app-plus:${env.BRANCH_NAME}' + sh "npm run build:app-plus:${env.BRANCH_NAME}" } }