]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Fix missing script block in jenkinsfiles
authorGeorge Joseph <gjoseph@digium.com>
Tue, 19 Nov 2019 18:11:06 +0000 (11:11 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 19 Nov 2019 18:13:22 +0000 (13:13 -0500)
Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3
(cherry picked from commit 95213b01d2d5e72e38b40c30fa5d0c8cf4b37b16)

tests/CI/gates.jenkinsfile
tests/CI/periodics-daily.jenkinsfile
tests/CI/ref_debug.jenkinsfile

index 284b0feab398f7d6ec704d6d022ba6b8bc3779ba..e52d3a4cd3713af9375430b55a8bbc126e1ec5e5 100644 (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
+                               }
                        }
                }
                /*
index 4934c12141b30080106bd2348f1c635e4cb893bc..11e9ed379a9415b5bba7eb323ad8692932418374 100644 (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 {
index a2bfdbaeadf438403dd0b9761cce91091f73120a..31fc85d4d96990de948fabf00728fa92263c3098 100644 (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 {