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,8 +240,10 @@ pipeline {
}
post {
cleanup {
if (env.CLEANUP_WS_GATES.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
script {
if (env.CLEANUP_WS_GATES.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
}
}
}
/*

View File

@ -159,8 +159,10 @@ pipeline {
}
post {
cleanup {
if (env.CLEANUP_WS_DAILIES.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
script {
if (env.CLEANUP_WS_DAILIES.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
}
}
}
success {

View File

@ -129,8 +129,10 @@ pipeline {
}
post {
cleanup {
if (env.CLEANUP_WS_REF_DEBUG.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
script {
if (env.CLEANUP_WS_REF_DEBUG.toBoolean()) {
cleanWs deleteDirs: true, notFailBuild: false
}
}
}
success {