Fix missing definition of variables

Change-Id: Ibcb8219bf9465181a2d3b28c2e866dce8f6fd1f6
diff --git a/test-salt-formulas-pipeline.groovy b/test-salt-formulas-pipeline.groovy
index 32a6538..f5d0c48 100644
--- a/test-salt-formulas-pipeline.groovy
+++ b/test-salt-formulas-pipeline.groovy
@@ -73,7 +73,6 @@
       if (checkouted) {
         if (fileExists(".kitchen.yml")) {
           common.infoMsg(".kitchen.yml found, running kitchen tests")
-          ruby.ensureRubyEnv()
           def kitchenEnvs = []
           def filteredEnvs = []
           if (fileExists(".travis.yml")) {
@@ -91,12 +90,13 @@
             common.infoMsg("CUSTOM_KITCHEN_ENVS not empty. Running with custom enviroments: ${kitchenEnvs}")
           }
           if (kitchenEnvs != null && kitchenEnvs != '') {
+            def acc = 0
+            def kitchenTestRuns = [:]
             common.infoMsg("Found " + kitchenEnvs.size() + " environment(s)")
             for (int i = 0; i < kitchenEnvs.size(); i++) {
-              def acc = 0
               if (acc >= parallelGroupSize) {
                 parallel kitchenTestRuns
-                kitchenTestRuns = [: ]
+                kitchenTestRuns = [:]
                 acc = 0
               }
               def testEnv = kitchenEnvs[i]
@@ -125,7 +125,6 @@
     // If there was an error or exception thrown, the build failed
     currentBuild.result = "FAILURE"
     currentBuild.description = currentBuild.description ? e.message + " " + currentBuild.description : e.message
-    ruby.runKitchenCommand("destroy")
     throw e
   } finally {
     if (currentBuild.result == "FAILURE" && fileExists(".kitchen/logs/kitchen.log")) {