diff --git a/Jenkinsfile b/Jenkinsfile index 0ee7171..295484e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,7 +51,7 @@ pipeline { sh "chown -R jenkins:jenkins ${workspace}" // 使用更健壮的Docker命令 -sh sh 'docker run -u $ (id -u): $ (id -g) -v $ {workspace}:/app -w /app node:18-alpine sh -c "npm install && npm run build"' } + sh 'docker run -u $ (id -u): $ (id -g) -v $ {workspace}:/app -w /app node:18-alpine sh -c "npm install && npm run build"' } } stage('Build Docker Image') {