]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Fix missing script block in jenkinsfiles
authorGeorge Joseph <gjoseph@digium.com>
Tue, 19 Nov 2019 17:40:09 +0000 (10:40 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 19 Nov 2019 18:03:58 +0000 (13:03 -0500)
Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f
(cherry picked from commit d60f23ecbdb748b188da424c92335152941c7673)
(cherry picked from commit ce8a23fdf966dc6824678f3cb722753db06baa7a)

tests/CI/unittests.jenkinsfile

index 43774fd8fa9b74354351b46e22ce5cdbb1b0b82a..96ea2133bf15abed585de9fdb5f01002bca43918 100644 (file)
@@ -183,8 +183,10 @@ pipeline {
        }
        post {
                cleanup {
-                       if (env.CLEANUP_WS_UNITTESTS.toBoolean()) {
-                               cleanWs deleteDirs: true, notFailBuild: false
+                       script {
+                               if (env.CLEANUP_WS_UNITTESTS.toBoolean()) {
+                                       cleanWs deleteDirs: true, notFailBuild: false
+                               }
                        }
                }
                /*