fix reading cluster_name
Change-Id: I4f1159422916d858672ddaa74e3a65ff30881456
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index 4c8eba1..4092068 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -33,13 +33,12 @@
def templateOutputDir = "${env.WORKSPACE}/template"
def cutterEnv = "${env.WORKSPACE}/cutter"
def jinjaEnv = "${env.WORKSPACE}/jinja"
- def clusterName = templateContext.cluster_name
- def clusterDomain = templateContext.cluster_domain
+ def clusterName = templateContext.default_context.cluster_name
+ def clusterDomain = templateContext.default_context.cluster_domain
def targetBranch = "feature/${clusterName}"
def outputDestination = "${modelEnv}/classes/cluster/${clusterName}"
currentBuild.description = clusterName
-
print("Using context:\n" + COOKIECUTTER_TEMPLATE_CONTEXT)
stage ('Download Cookiecutter template') {