From 482cd7a6609acb11d10493d29d3ce5cf47d693f2 Mon Sep 17 00:00:00 2001 From: jianghao <332515344@qq.com> Date: Mon, 29 Dec 2025 15:07:38 +0800 Subject: [PATCH] Jenkins build --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e6f2afe..6d960fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,7 +40,7 @@ pipeline { stage('Build timeline-frontend dist') { steps { script { - def workspace = '.' + def workspace = $(pwd) echo "当前工作空间路径: ${workspace}" // 确保路径正确 @@ -51,7 +51,7 @@ pipeline { sh "chown -R jenkins:jenkins ${workspace}" // 使用更健壮的Docker命令 - sh 'docker run -v ./:/app -w /app node:18-alpine sh -c "cd /app && npm install && npm run build"' + sh 'docker run -v ./:/app -w /app node:18-alpine sh -c "cd /app && ls -la && npm install && npm run build"' } } }