From c8d86bfc67902be33ba2438bb4634ec4a531d320 Mon Sep 17 00:00:00 2001 From: jianghao <332515344@qq.com> Date: Mon, 29 Dec 2025 14:41:22 +0800 Subject: [PATCH] Jenkins build --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5361fa2..ad2d5d8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -51,8 +51,7 @@ pipeline { sh "chown -R jenkins:jenkins ${workspace}" // 使用更健壮的Docker命令 - 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'" } } }