From: George Joseph Date: Tue, 19 Nov 2019 17:40:09 +0000 (-0700) Subject: CI: Fix missing script block in jenkinsfiles X-Git-Tag: 17.1.0-rc1~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f0d1ce50afd25a1269e680b90c8bb612bd543565;p=thirdparty%2Fasterisk.git CI: Fix missing script block in jenkinsfiles Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f (cherry picked from commit d60f23ecbdb748b188da424c92335152941c7673) (cherry picked from commit ce8a23fdf966dc6824678f3cb722753db06baa7a) --- diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile index 43774fd8fa..96ea2133bf 100644 --- a/tests/CI/unittests.jenkinsfile +++ b/tests/CI/unittests.jenkinsfile @@ -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 + } } } /*