]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
CI: Remove duplicate checkout
authorGeorge Joseph <gjoseph@digium.com>
Wed, 11 Jul 2018 20:55:55 +0000 (14:55 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 12 Jul 2018 21:51:38 +0000 (15:51 -0600)
Change-Id: If5f925b4c4ed7000b153f3ed8386ce2140c886f8

tests/CI/gates.jenkinsfile

index 6f489a789485abc164b2d9cc34e7fda62122b0cc..30b534a562d9adf23d6004f6f5493f40a234b2c5 100644 (file)
@@ -42,6 +42,10 @@ pipeline {
                                onUnstable: false
                        ]
        }
+       options {
+         skipDefaultCheckout true
+       }
+       
        agent {
                /* All of the stages need to be performed on a docker host */
                label "swdev-docker"
@@ -63,12 +67,6 @@ pipeline {
                                                sh "sudo chown -R jenkins:users ."  
                                        
                                                /*
-                                                * Jenkins has already automatically checked out the base branch
-                                                * for this change but we now need to check out the change itself
-                                                * and rebase it on the current base branch.  If the rebase fails,
-                                                * that's an indication to the user that they'll need to sort their
-                                                * change out.
-                                                *
                                                 * The Gerrit Trigger provides all the URLs and refspecs to
                                                 * check out the change.
                                                 */
@@ -116,17 +114,17 @@ pipeline {
                                        def parallelTasks = [ : ]
 
                                        for (def testGroup in testGroups) {
-                                               /*
-                                                * Because each task is a Groovy closure, we need to
-                                                * keep local references to some variables.
-                                                */
-                                               def groupName = testGroup.name
-
-                                               parallelTasks[groupName] = {
+                                               parallelTasks[testGroup.name] = {
+                                                       /*
+                                                        * Because each task is a Groovy closure, we need to
+                                                        * keep local references to some variables.
+                                                        */
+                                                       def groupName = testGroup.name
+                                                       def groupDir = testGroup.dir
+                                                       def groupTestcmd = testGroup.testcmd
+                                                       def testsuiteUrl = env.GIT_URL.replaceAll(/${GERRIT_PROJECT}$/, "testsuite")
+                                                       
                                                        stage (groupName) {
-                                                               def groupDir = testGroup.dir
-                                                               def groupTestcmd = testGroup.testcmd
-                                                               def testsuiteUrl = env.GIT_URL.replaceAll(/${GERRIT_PROJECT}$/, "testsuite")
 
                                                                docker.image(randomImage).inside("${dockerOptions} --name ${BUILD_TAG}-${groupName}") {