<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9423">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">CI: Remove duplicate checkout<br><br>Change-Id: If5f925b4c4ed7000b153f3ed8386ce2140c886f8<br>---<br>M tests/CI/gates.jenkinsfile<br>1 file changed, 14 insertions(+), 16 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/23/9423/1</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 6f489a7..30b534a 100644</span><br><span>--- a/tests/CI/gates.jenkinsfile</span><br><span>+++ b/tests/CI/gates.jenkinsfile</span><br><span>@@ -42,6 +42,10 @@</span><br><span> onUnstable: false</span><br><span> ]</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ options {</span><br><span style="color: hsl(120, 100%, 40%);">+ skipDefaultCheckout true</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span> agent {</span><br><span> /* All of the stages need to be performed on a docker host */</span><br><span> label "swdev-docker"</span><br><span>@@ -63,12 +67,6 @@</span><br><span> sh "sudo chown -R jenkins:users ." </span><br><span> </span><br><span> /*</span><br><span style="color: hsl(0, 100%, 40%);">- * Jenkins has already automatically checked out the base branch</span><br><span style="color: hsl(0, 100%, 40%);">- * for this change but we now need to check out the change itself</span><br><span style="color: hsl(0, 100%, 40%);">- * and rebase it on the current base branch. If the rebase fails,</span><br><span style="color: hsl(0, 100%, 40%);">- * that's an indication to the user that they'll need to sort their</span><br><span style="color: hsl(0, 100%, 40%);">- * change out.</span><br><span style="color: hsl(0, 100%, 40%);">- *</span><br><span> * The Gerrit Trigger provides all the URLs and refspecs to</span><br><span> * check out the change.</span><br><span> */</span><br><span>@@ -116,17 +114,17 @@</span><br><span> def parallelTasks = [ : ]</span><br><span> </span><br><span> for (def testGroup in testGroups) {</span><br><span style="color: hsl(0, 100%, 40%);">- /*</span><br><span style="color: hsl(0, 100%, 40%);">- * Because each task is a Groovy closure, we need to</span><br><span style="color: hsl(0, 100%, 40%);">- * keep local references to some variables.</span><br><span style="color: hsl(0, 100%, 40%);">- */</span><br><span style="color: hsl(0, 100%, 40%);">- def groupName = testGroup.name</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">- parallelTasks[groupName] = {</span><br><span style="color: hsl(120, 100%, 40%);">+ parallelTasks[testGroup.name] = {</span><br><span style="color: hsl(120, 100%, 40%);">+ /*</span><br><span style="color: hsl(120, 100%, 40%);">+ * Because each task is a Groovy closure, we need to</span><br><span style="color: hsl(120, 100%, 40%);">+ * keep local references to some variables.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+ def groupName = testGroup.name</span><br><span style="color: hsl(120, 100%, 40%);">+ def groupDir = testGroup.dir</span><br><span style="color: hsl(120, 100%, 40%);">+ def groupTestcmd = testGroup.testcmd</span><br><span style="color: hsl(120, 100%, 40%);">+ def testsuiteUrl = env.GIT_URL.replaceAll(/${GERRIT_PROJECT}$/, "testsuite")</span><br><span style="color: hsl(120, 100%, 40%);">+ </span><br><span> stage (groupName) {</span><br><span style="color: hsl(0, 100%, 40%);">- def groupDir = testGroup.dir</span><br><span style="color: hsl(0, 100%, 40%);">- def groupTestcmd = testGroup.testcmd</span><br><span style="color: hsl(0, 100%, 40%);">- def testsuiteUrl = env.GIT_URL.replaceAll(/${GERRIT_PROJECT}$/, "testsuite")</span><br><span> </span><br><span> docker.image(randomImage).inside("${dockerOptions} --name ${BUILD_TAG}-${groupName}") {</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9423">change 9423</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/9423"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: certified/13.21 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: If5f925b4c4ed7000b153f3ed8386ce2140c886f8 </div>
<div style="display:none"> Gerrit-Change-Number: 9423 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>