mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-19 11:13:09 +00:00
CI: Remove duplicate checkout
Change-Id: If5f925b4c4ed7000b153f3ed8386ce2140c886f8
This commit is contained in:
@@ -42,6 +42,10 @@ pipeline {
|
|||||||
onUnstable: false
|
onUnstable: false
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
options {
|
||||||
|
skipDefaultCheckout true
|
||||||
|
}
|
||||||
|
|
||||||
agent {
|
agent {
|
||||||
/* All of the stages need to be performed on a docker host */
|
/* All of the stages need to be performed on a docker host */
|
||||||
label "swdev-docker"
|
label "swdev-docker"
|
||||||
@@ -63,12 +67,6 @@ pipeline {
|
|||||||
sh "sudo chown -R jenkins:users ."
|
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
|
* The Gerrit Trigger provides all the URLs and refspecs to
|
||||||
* check out the change.
|
* check out the change.
|
||||||
*/
|
*/
|
||||||
@@ -116,17 +114,17 @@ pipeline {
|
|||||||
def parallelTasks = [ : ]
|
def parallelTasks = [ : ]
|
||||||
|
|
||||||
for (def testGroup in testGroups) {
|
for (def testGroup in testGroups) {
|
||||||
/*
|
parallelTasks[testGroup.name] = {
|
||||||
* Because each task is a Groovy closure, we need to
|
/*
|
||||||
* keep local references to some variables.
|
* Because each task is a Groovy closure, we need to
|
||||||
*/
|
* keep local references to some variables.
|
||||||
def groupName = testGroup.name
|
*/
|
||||||
|
def groupName = testGroup.name
|
||||||
parallelTasks[groupName] = {
|
def groupDir = testGroup.dir
|
||||||
|
def groupTestcmd = testGroup.testcmd
|
||||||
|
def testsuiteUrl = env.GIT_URL.replaceAll(/${GERRIT_PROJECT}$/, "testsuite")
|
||||||
|
|
||||||
stage (groupName) {
|
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}") {
|
docker.image(randomImage).inside("${dockerOptions} --name ${BUILD_TAG}-${groupName}") {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user