From 6e5f4e80dda6b3ef8934e3c44f046ba89ff692fd Mon Sep 17 00:00:00 2001 From: Martin Stockhammer Date: Mon, 29 Oct 2018 11:07:54 +0100 Subject: [PATCH] Cleaning ci workspace only if successful to allow investigation --- Jenkinsfile-itest | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile-itest b/Jenkinsfile-itest index 94f9b2e82..075741432 100644 --- a/Jenkinsfile-itest +++ b/Jenkinsfile-itest @@ -129,7 +129,6 @@ pipeline { // -Pit-js: Runs the Selenium tests // -Pchrome: Activates the Selenium Chrome Test Agent sh "mvn clean install -B -V -U -e -fae -Dmaven.compiler.fork=true -DmaxWaitTimeInMs=2000 -DseleniumRemote=true -Pci-server -Pit-js -Pchrome -pl :archiva-webapp-test -DtrimStackTrace=false" - } } } @@ -150,9 +149,6 @@ pipeline { unstable { notifyBuild("Unstable Build") } - always { - cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']] - } success { script { def previousResult = currentBuild.previousBuild?.result @@ -160,6 +156,7 @@ pipeline { notifyBuild("Fixed") } } + cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']] } } -- 2.39.5