blob: 79258193f6838d54eb9c06581c420a5ef98f0f6f [file] [log] [blame]
Filip Pytloun19376a82017-03-07 12:29:00 +01001def branches = [:]
Filip Pytloun840a0842017-03-07 13:54:23 +01002def testModels = TEST_MODELS.split(',')
Filip Pytloun19376a82017-03-07 12:29:00 +01003
Filip Pytloun840a0842017-03-07 13:54:23 +01004stage("Test") {
5 for (int i = 0; i < testModels.size(); i++) {
6 def cluster = testModels[i]
7 branches["${cluster}"] = {
8 build job: "test-salt-model-${cluster}", parameters: [
9 [$class: 'StringParameterValue', name: 'RECLASS_SYSTEM_GIT_URL', value: "${GERRIT_SCHEME}://${GERRIT_NAME}@${GERRIT_HOST}:${GERRIT_PORT}/${GERRIT_PROJECT}.git"],
10 [$class: 'StringParameterValue', name: 'RECLASS_SYSTEM_GIT_REF', value: GERRIT_REFSPEC]
11 ]
12 }
Filip Pytloun19376a82017-03-07 12:29:00 +010013 }
Filip Pytloun840a0842017-03-07 13:54:23 +010014 parallel branches
Filip Pytloun19376a82017-03-07 12:29:00 +010015}