[Asterisk-code-review] CI: Fix missing script block in jenkinsfiles (asterisk[master])
George Joseph
asteriskteam at digium.com
Tue Nov 19 12:05:23 CST 2019
George Joseph has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/13261 )
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)
(cherry picked from commit f0d1ce50afd25a1269e680b90c8bb612bd543565)
---
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/+/13261
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ib4b6e4887695f230ea7a5b0c879b29fc5a13be4f
Gerrit-Change-Number: 13261
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20191119/2800704b/attachment.html>
More information about the asterisk-code-review
mailing list