From 0bc4ed91c52f54bdcb1f23912789acb4b705417b Mon Sep 17 00:00:00 2001 From: xiaozhou233 Date: Sun, 9 Aug 2026 13:32:27 +0800 Subject: [PATCH] fix: archive dist in Build stage before cleanWs wipes workspace --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c8ffa3..ee40281 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,14 +38,12 @@ pipeline { stage('Build') { steps { sh 'npm run build' + archiveArtifacts artifacts: 'dist/**', fingerprint: true, allowEmptyArchive: false } } } post { - success { - archiveArtifacts artifacts: 'dist/**', fingerprint: true - } always { cleanWs() }