Jenkins: change "Workspace Cleanup" plugin's strategy

This commit is contained in:
Ștefan Talpalaru 2020-04-19 13:17:02 +02:00
parent 82f28d7718
commit 3dde68fc20
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
def runStages() {
try {
stage("Clone") {
cleanWs()
preBuildCleanup()
checkout scm
}
@ -42,7 +42,7 @@ def runStages() {
// we need to rethrow the exception here
throw e
} finally {
cleanWs()
cleanWs(disableDeferredWipeout: true, deleteDirs: true)
}
}