From 9de3e2c6584b06a37719060025e656ff81ee0546 Mon Sep 17 00:00:00 2001 From: Home Date: Sat, 28 Mar 2026 21:29:34 +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 | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b137016c..eb2db15f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,18 +22,6 @@ pipeline { ''' } } - // 修复 npm 权限 + 设置国内镜像 - stage('修复npm权限') { - steps { - sh ''' - # 配置 npm 缓存目录到当前工作区(解决权限问题) - npm config set cache $WORKSPACE/.npm - npm config set prefix $WORKSPACE/.npm-global - npm config set registry https://registry.npmmirror.com - ''' - } - } - stage('安装依赖') { steps { sh 'npm install'