<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13264">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  George Joseph: Looks good to me, approved; Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">CI: Fix missing script block in jenkinsfiles<br><br>Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3<br>(cherry picked from commit 95213b01d2d5e72e38b40c30fa5d0c8cf4b37b16)<br>---<br>M tests/CI/gates.jenkinsfile<br>M tests/CI/periodics-daily.jenkinsfile<br>M tests/CI/ref_debug.jenkinsfile<br>3 files changed, 12 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/tests/CI/gates.jenkinsfile b/tests/CI/gates.jenkinsfile</span><br><span>index 284b0fe..e52d3a4 100644</span><br><span>--- a/tests/CI/gates.jenkinsfile</span><br><span>+++ b/tests/CI/gates.jenkinsfile</span><br><span>@@ -240,8 +240,10 @@</span><br><span>      }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-                       if (env.CLEANUP_WS_GATES.toBoolean()) {</span><br><span style="color: hsl(0, 100%, 40%);">-                         cleanWs deleteDirs: true, notFailBuild: false</span><br><span style="color: hsl(120, 100%, 40%);">+                 script {</span><br><span style="color: hsl(120, 100%, 40%);">+                              if (env.CLEANUP_WS_GATES.toBoolean()) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                       cleanWs deleteDirs: true, notFailBuild: false</span><br><span style="color: hsl(120, 100%, 40%);">+                         }</span><br><span>                    }</span><br><span>            }</span><br><span>            /*</span><br><span>diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile</span><br><span>index 4934c12..11e9ed3 100644</span><br><span>--- a/tests/CI/periodics-daily.jenkinsfile</span><br><span>+++ b/tests/CI/periodics-daily.jenkinsfile</span><br><span>@@ -159,8 +159,10 @@</span><br><span>       }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-                       if (env.CLEANUP_WS_DAILIES.toBoolean()) {</span><br><span style="color: hsl(0, 100%, 40%);">-                               cleanWs deleteDirs: true, notFailBuild: false</span><br><span style="color: hsl(120, 100%, 40%);">+                 script {</span><br><span style="color: hsl(120, 100%, 40%);">+                              if (env.CLEANUP_WS_DAILIES.toBoolean()) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                     cleanWs deleteDirs: true, notFailBuild: false</span><br><span style="color: hsl(120, 100%, 40%);">+                         }</span><br><span>                    }</span><br><span>            }</span><br><span>            success {</span><br><span>diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile</span><br><span>index a2bfdba..31fc85d 100644</span><br><span>--- a/tests/CI/ref_debug.jenkinsfile</span><br><span>+++ b/tests/CI/ref_debug.jenkinsfile</span><br><span>@@ -129,8 +129,10 @@</span><br><span>        }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-                       if (env.CLEANUP_WS_REF_DEBUG.toBoolean()) {</span><br><span style="color: hsl(0, 100%, 40%);">-                             cleanWs deleteDirs: true, notFailBuild: false</span><br><span style="color: hsl(120, 100%, 40%);">+                 script {</span><br><span style="color: hsl(120, 100%, 40%);">+                              if (env.CLEANUP_WS_REF_DEBUG.toBoolean()) {</span><br><span style="color: hsl(120, 100%, 40%);">+                                   cleanWs deleteDirs: true, notFailBuild: false</span><br><span style="color: hsl(120, 100%, 40%);">+                         }</span><br><span>                    }</span><br><span>            }</span><br><span>            success {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13264">change 13264</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13264"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9f44a3d5085ea7880fad1a3883a4820907e29ea3 </div>
<div style="display:none"> Gerrit-Change-Number: 13264 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-CC: Friendly Automation </div>
<div style="display:none"> Gerrit-MessageType: merged </div>