Fixed working with repos in test system reclass job
Change-Id: I62b30d420c8c3498d1f19add057ffc65e596a58f
diff --git a/test-system-reclass-pipeline.groovy b/test-system-reclass-pipeline.groovy
index 2944d30..c01fe62 100644
--- a/test-system-reclass-pipeline.groovy
+++ b/test-system-reclass-pipeline.groovy
@@ -48,9 +48,10 @@
def testModels = TEST_MODELS.split(',')
for (int i = 0; i < testModels.size(); i++) {
def cluster = testModels[i]
+ def clusterGitUrl = defaultGitUrl.substring(0, defaultGitUrl.lastIndexOf("/") + 1) + cluster
branches["${cluster}"] = {
build job: "test-salt-model-${cluster}", parameters: [
- [$class: 'StringParameterValue', name: 'DEFAULT_GIT_URL', value: defaultGitUrl],
+ [$class: 'StringParameterValue', name: 'DEFAULT_GIT_URL', value: clusterGitUrl],
[$class: 'StringParameterValue', name: 'DEFAULT_GIT_REF', value: defaultGitRef]
]
}