CI: Fix missing script block in jenkinsfiles

Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3
(cherry picked from commit 95213b01d2)
17.1
George Joseph 6 years ago
parent f0d1ce50af
commit 2a92e6b576

@ -240,10 +240,12 @@ pipeline {
}
post {
cleanup {
script {
if (env.CLEANUP_WS_GATES.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
}
}
}
/*
* The Gerrit Trigger will automatically post the "Verified" results back
* to Gerrit but the verification publisher publishes extra stuff in the

@ -159,10 +159,12 @@ pipeline {
}
post {
cleanup {
script {
if (env.CLEANUP_WS_DAILIES.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
}
}
}
success {
echo "Reporting ${currentBuild.currentResult} Passed"
}

@ -129,10 +129,12 @@ pipeline {
}
post {
cleanup {
script {
if (env.CLEANUP_WS_REF_DEBUG.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
}
}
}
success {
echo "Reporting ${currentBuild.currentResult} Passed"
}

Loading…
Cancel
Save