Add ability to inject env vars from EXTRA_VARIABLES_YAML parameter for cookiecutter-templates job
Change-Id: Iea39e8c840bd07bab1f11ccc18b7022c22f02bd0
diff --git a/test-cookiecutter-reclass.groovy b/test-cookiecutter-reclass.groovy
index 6813be9..17590c4 100644
--- a/test-cookiecutter-reclass.groovy
+++ b/test-cookiecutter-reclass.groovy
@@ -17,6 +17,11 @@
git = new com.mirantis.mk.Git()
python = new com.mirantis.mk.Python()
+def extraVarsYAML = env.EXTRA_VARIABLES_YAML ?: false
+if (extraVarsYAML) {
+ common.mergeEnv(env, extraVarsYAML)
+}
+
slaveNode = env.SLAVE_NODE ?: 'docker'
checkIncludeOrder = env.CHECK_INCLUDE_ORDER ?: false