]> 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 17:41:22 +0000 (10:41 -0700)
Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f

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
+                               }
                        }
                }
                /*