CI: Fix missing script block in jenkinsfiles

Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3
(cherry picked from commit 95213b01d2)
16.7
George Joseph 6 years ago
parent ce8a23fdf9
commit d075d8913b

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

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

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

Loading…
Cancel
Save