From 9066454960310c5d7cf33afe5a929cc4692f2071 Mon Sep 17 00:00:00 2001 From: budgidiere Date: Tue, 6 Oct 2020 10:10:51 -0500 Subject: [PATCH] Clean Workspace If build failure --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 37affe2e..53a3dc2c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -96,6 +96,9 @@ pipeline { success { archiveArtifacts "target/*.jar" } + failure { + cleanWs() + } } } }