blob: 79258193f6838d54eb9c06581c420a5ef98f0f6f [file] [log] [blame]
def branches = [:]
def testModels = TEST_MODELS.split(',')
stage("Test") {
for (int i = 0; i < testModels.size(); i++) {
def cluster = testModels[i]
branches["${cluster}"] = {
build job: "test-salt-model-${cluster}", parameters: [
[$class: 'StringParameterValue', name: 'RECLASS_SYSTEM_GIT_URL', value: "${GERRIT_SCHEME}://${GERRIT_NAME}@${GERRIT_HOST}:${GERRIT_PORT}/${GERRIT_PROJECT}.git"],
[$class: 'StringParameterValue', name: 'RECLASS_SYSTEM_GIT_REF', value: GERRIT_REFSPEC]
]
}
}
parallel branches
}