From c85569bf6cd3d74ff0084002dfbe9ecc1af6aa89 Mon Sep 17 00:00:00 2001 From: jianghao <332515344@qq.com> Date: Mon, 29 Dec 2025 15:15:28 +0800 Subject: [PATCH] Jenkins build --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 26c9d7e..5f9d6b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,8 +52,7 @@ pipeline { sh "chown -R jenkins:jenkins ${workspace}" // 使用更健壮的Docker命令 - sh 'docker run -v ./:/app -w /app node:18-alpine sh -c "cd /app && ls -la && npm install && npm run build"' - } + sh 'docker run --rm -v "$(pwd)":/app -w /app node:18-alpine sh -c "ls -la && npm ci && npm run build"' } } }