move templateEnv and modelEnv out of try block

Change-Id: Ic08d53593a226fac88a1bcfe510d26f1223cc8d8
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index eb28365..2fd65bc 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -23,12 +23,13 @@
 
 timestamps {
     node() {
+        def templateEnv = "${env.WORKSPACE}/template"
+        def modelEnv = "${env.WORKSPACE}/model"
+
         try {
-            def templateEnv = "${env.WORKSPACE}/template"
             def templateContext = python.loadJson(COOKIECUTTER_TEMPLATE_CONTEXT)
             def templateDir = "${templateEnv}/template/dir"
             def templateOutputDir = "${env.WORKSPACE}/template"
-            def modelEnv = "${env.WORKSPACE}/model"
             def cutterEnv = "${env.WORKSPACE}/cutter"
             def jinjaEnv = "${env.WORKSPACE}/jinja"
             def clusterName = templateContext.cluster_name