<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13249">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Kevin Harwell: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved; Approved for Submit
  Friendly Automation: Verified

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">CI: Increase clone depth and do better cleanup<br><br>The original clone depth of 10 was causing the need to rebase<br>changes whose parent was older than the 10 commits.  The clone<br>depth has been increased to 100.<br><br>Workspace cleanup was only happening for successful builds which<br>wasn't enough to keep the 8G workspace in-memory drives on the<br>docker slaves from filling up.  Now the workspaces are cleaned up<br>after every build regardless of success/failure.  If you need to<br>preserve builds temporarily, you can log into Jenkins/Manage<br>Jenkins/Configure System and change the CLEANUP_WS_* environment<br>variable for the job type you're troubleshooting to "FALSE".<br><br>Change-Id: I0d7366e87cea714e5dbc9488caf718802fce75ca<br>---<br>M tests/CI/gates.jenkinsfile<br>M tests/CI/periodics-daily.jenkinsfile<br>M tests/CI/ref_debug.jenkinsfile<br>M tests/CI/unittests.jenkinsfile<br>4 files changed, 18 insertions(+), 10 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 82ef343..284b0fe 100644</span><br><span>--- a/tests/CI/gates.jenkinsfile</span><br><span>+++ b/tests/CI/gates.jenkinsfile</span><br><span>@@ -115,7 +115,7 @@</span><br><span>                                                                    [$class: 'CloneOption',</span><br><span>                                                                              honorRefspec: true,</span><br><span>                                                                          noTags: true,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                           depth: 10,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                            depth: 100,</span><br><span>                                                                          shallow: true</span><br><span>                                                                        ],</span><br><span>                                                                   [$class: 'PruneStaleBranch'],</span><br><span>@@ -203,7 +203,7 @@</span><br><span>                                                                                          [$class: 'RelativeTargetDirectory', relativeTargetDir: groupDir],</span><br><span>                                                                                            [$class: 'CloneOption',</span><br><span>                                                                                                      noTags: true,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                                                   depth: 10,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                                                    depth: 100,</span><br><span>                                                                                                  honorRefspec: true,</span><br><span>                                                                                                  shallow: true</span><br><span>                                                                                                ],</span><br><span>@@ -240,7 +240,9 @@</span><br><span>     }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-            cleanWs deleteDirs: true, notFailBuild: true</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>            * The Gerrit Trigger will automatically post the "Verified" results back</span><br><span>diff --git a/tests/CI/periodics-daily.jenkinsfile b/tests/CI/periodics-daily.jenkinsfile</span><br><span>index 352737f..4934c12 100644</span><br><span>--- a/tests/CI/periodics-daily.jenkinsfile</span><br><span>+++ b/tests/CI/periodics-daily.jenkinsfile</span><br><span>@@ -81,7 +81,7 @@</span><br><span>                                                                                 [$class: 'RelativeTargetDirectory', relativeTargetDir: "tests/CI/output/publish-docs"],</span><br><span>                                                                            [$class: 'CloneOption',</span><br><span>                                                                                      noTags: true,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                                   depth: 10,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                                    depth: 100,</span><br><span>                                                                                  honorRefspec: true,</span><br><span>                                                                                  shallow: true</span><br><span>                                                                                ],</span><br><span>@@ -129,7 +129,7 @@</span><br><span>                                                                                             [$class: 'RelativeTargetDirectory', relativeTargetDir: groupDir],</span><br><span>                                                                                            [$class: 'CloneOption',</span><br><span>                                                                                                      noTags: true,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                                                   depth: 10,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                                                    depth: 100,</span><br><span>                                                                                                  honorRefspec: true,</span><br><span>                                                                                                  shallow: true</span><br><span>                                                                                                ],</span><br><span>@@ -159,7 +159,9 @@</span><br><span>     }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-            cleanWs deleteDirs: true, notFailBuild: true</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>            success {</span><br><span>                    echo "Reporting ${currentBuild.currentResult} Passed"</span><br><span>diff --git a/tests/CI/ref_debug.jenkinsfile b/tests/CI/ref_debug.jenkinsfile</span><br><span>index a87f7dc..a2bfdba 100644</span><br><span>--- a/tests/CI/ref_debug.jenkinsfile</span><br><span>+++ b/tests/CI/ref_debug.jenkinsfile</span><br><span>@@ -102,7 +102,7 @@</span><br><span>                                                                                           [$class: 'RelativeTargetDirectory', relativeTargetDir: groupDir],</span><br><span>                                                                                            [$class: 'CloneOption',</span><br><span>                                                                                                      noTags: true,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                                                   depth: 10,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                                                    depth: 100,</span><br><span>                                                                                                  honorRefspec: true,</span><br><span>                                                                                                  shallow: true</span><br><span>                                                                                                ],</span><br><span>@@ -129,7 +129,9 @@</span><br><span>     }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-            cleanWs deleteDirs: true, notFailBuild: true</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>            success {</span><br><span>                    echo "Reporting ${currentBuild.currentResult} Passed"</span><br><span>diff --git a/tests/CI/unittests.jenkinsfile b/tests/CI/unittests.jenkinsfile</span><br><span>index 6f81479..43774fd 100644</span><br><span>--- a/tests/CI/unittests.jenkinsfile</span><br><span>+++ b/tests/CI/unittests.jenkinsfile</span><br><span>@@ -115,7 +115,7 @@</span><br><span>                                                                   [$class: 'CloneOption',</span><br><span>                                                                              honorRefspec: true,</span><br><span>                                                                          noTags: true,</span><br><span style="color: hsl(0, 100%, 40%);">-                                                                           depth: 10,</span><br><span style="color: hsl(120, 100%, 40%);">+                                                                            depth: 100,</span><br><span>                                                                          shallow: true</span><br><span>                                                                        ],</span><br><span>                                                                   [$class: 'PruneStaleBranch'],</span><br><span>@@ -183,7 +183,9 @@</span><br><span>  }</span><br><span>    post {</span><br><span>               cleanup {</span><br><span style="color: hsl(0, 100%, 40%);">-            cleanWs deleteDirs: true, notFailBuild: true</span><br><span style="color: hsl(120, 100%, 40%);">+                     if (env.CLEANUP_WS_UNITTESTS.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>            * The Gerrit Trigger will automatically post the "Verified" results back</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13249">change 13249</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/+/13249"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 17 </div>
<div style="display:none"> Gerrit-Change-Id: I0d7366e87cea714e5dbc9488caf718802fce75ca </div>
<div style="display:none"> Gerrit-Change-Number: 13249 </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: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>