From 29db5a4c307295e9598f4b86aa55bde15d261021 Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Sat, 30 May 2026 09:52:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20root=20=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=81=A2=E5=A4=8D=E5=8E=9F=E5=A7=8B?= =?UTF-8?q?=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c4672f5..84eee9b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,13 +10,12 @@ pipeline { agent { docker { image 'node:20-alpine' - args '-u root -v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules' + args '-v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules' } } steps { sh ''' npm config set cache /.npm - chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true npm install ''' } @@ -26,12 +25,11 @@ pipeline { agent { docker { image 'node:20-alpine' - args '-u root -v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules' + args '-v ${WORKSPACE}/.npm:/.npm -v ${WORKSPACE}/node_modules:/app/node_modules' } } steps { sh ''' - chown -R $(id -u):$(id -g) /.npm 2>/dev/null || true npm run type-check npm run build '''