Fix testResult visibility

Change-Id: I395acc02e6fa6a85a5781240d5d5172d0d718378
diff --git a/generate-cookiecutter-products.groovy b/generate-cookiecutter-products.groovy
index 0a5cbfb..656c22d 100644
--- a/generate-cookiecutter-products.groovy
+++ b/generate-cookiecutter-products.groovy
@@ -167,10 +167,10 @@
             }
 
           stage("Test") {
+            def testResult = false
             if (sharedReclassUrl != "" && TEST_MODEL && TEST_MODEL.toBoolean()) {
               sh("cp -r ${modelEnv} ${testEnv}")
               def DockerCName = "${env.JOB_NAME.toLowerCase()}_${env.BUILD_TAG.toLowerCase()}"
-              def testResult = false
               testResult = saltModelTesting.setupAndTestNode(
                   "${saltMaster}.${clusterDomain}",
                   "",