From 5aeb60b1622e1aa2e9389007926d32b3c5efc102 Mon Sep 17 00:00:00 2001 From: "Charles P." Date: Tue, 24 Sep 2024 17:38:41 +0200 Subject: [PATCH] Clean workspace after build --- Jenkinsfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 47b6c35..13fb75b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -38,12 +38,20 @@ pipeline { } } } + + stage('Archivage des extraits') { + steps { + archiveArtifacts artifacts: '**/*.osm.bz2', fingerprint: true + } + } } post { always { - // Archive les artefacts .osm.bz2 - archiveArtifacts artifacts: '**/*.osm.bz2', allowEmptyArchive: true + cleanWs(cleanWhenNotBuilt: false, + deleteDirs: true, + notFailBuild: true + ) } } }