Fix passing reclassVersion to testModel
Change-Id: I74529548a557a64b665d44f1a8eb7b4ec417f561
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index d11f7d4..59c6dbd 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -81,7 +81,7 @@
generateSaltMaster(generatedModel, clusterDomain, clusterName)
}
-def testModel(modelFile, testEnv) {
+def testModel(modelFile, testEnv, reclassVersion='1.5.4') {
def templateEnv = "${env.WORKSPACE}"
def content = readFile(file: "${templateEnv}/contexts/${modelFile}.yml")
def templateContext = readYaml text: content
@@ -192,7 +192,7 @@
for(part in partition){
def basename = sh(script: "basename ${part} .yml", returnStdout: true).trim()
def testEnv = "${env.WORKSPACE}/model/${basename}"
- buildSteps.get("partition-${i}").put(basename, { testModel(basename, testEnv) })
+ buildSteps.get("partition-${i}").put(basename, { testModel(basename, testEnv, reclassVersion) })
}
}
common.serial(buildSteps)