[Asterisk-code-review] CI: Fix missing script block in jenkinsfiles (asterisk[17])

George Joseph asteriskteam at digium.com
Tue Nov 19 12:04:49 CST 2019


George Joseph has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13260 )

Change subject: CI: Fix missing script block in jenkinsfiles
......................................................................

CI: Fix missing script block in jenkinsfiles

Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f
(cherry picked from commit d60f23ecbdb748b188da424c92335152941c7673)
(cherry picked from commit ce8a23fdf966dc6824678f3cb722753db06baa7a)
---
M tests/CI/unittests.jenkinsfile
1 file changed, 4 insertions(+), 2 deletions(-)

Approvals:
  George Joseph: Looks good to me, approved; Approved for Submit



diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile
index 43774fd..96ea213 100644
--- a/tests/CI/unittests.jenkinsfile
+++ b/tests/CI/unittests.jenkinsfile
@@ -183,8 +183,10 @@
 	}
 	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
+				}
 			}
 		}
 		/*

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13260
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 17
Gerrit-Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f
Gerrit-Change-Number: 13260
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191119/99051dad/attachment-0001.html>


More information about the asterisk-code-review mailing list