diff options
author | Martin Stockhammer <martin.stockhammer@ars.de> | 2018-10-29 11:07:54 +0100 |
---|---|---|
committer | Martin Stockhammer <martin.stockhammer@ars.de> | 2018-10-29 11:08:23 +0100 |
commit | 6e5f4e80dda6b3ef8934e3c44f046ba89ff692fd (patch) | |
tree | f7774a3a84732b6e8af6c44e862733ba7d14416c /Jenkinsfile-itest | |
parent | df330893d73f43428c733a532236d98d57a5b90f (diff) | |
download | archiva-6e5f4e80dda6b3ef8934e3c44f046ba89ff692fd.tar.gz archiva-6e5f4e80dda6b3ef8934e3c44f046ba89ff692fd.zip |
Cleaning ci workspace only if successful to allow investigation
Diffstat (limited to 'Jenkinsfile-itest')
-rw-r--r-- | Jenkinsfile-itest | 5 |
1 files changed, 1 insertions, 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']] } } |