diff --git a/Jenkinsfile b/Jenkinsfile index c4672f5..d4e4a61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,13 +10,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}/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 +24,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}/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 '''