CI: Fix missing script block in jenkinsfiles

Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3
(cherry picked from commit 95213b01d2)
This commit is contained in:
George Joseph
2019-11-19 11:11:06 -07:00
parent ce8a23fdf9
commit d075d8913b
3 changed files with 12 additions and 6 deletions

View File

@@ -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

View File

@@ -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"
} }

View File

@@ -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"
} }