Add PARALLEL_GROUP_SIZE param

Change-Id: I4d508d8e1d7e304592a7bbe9ebbe5d49e296ae7b
diff --git a/test-salt-formulas-pipeline.groovy b/test-salt-formulas-pipeline.groovy
index c36ea17..32a6538 100644
--- a/test-salt-formulas-pipeline.groovy
+++ b/test-salt-formulas-pipeline.groovy
@@ -16,6 +16,13 @@
   gerritRef = null
 }
 
+def parallelGroupSize
+try {
+  parallelGroupSize = Integer.valueOf(PARALLEL_GROUP_SIZE)
+} catch (MissingPropertyException e) {
+  parallelGroupSize = 4
+}
+
 def defaultGitRef, defaultGitUrl
 try {
   defaultGitRef = DEFAULT_GIT_REF
@@ -85,8 +92,8 @@
           }
           if (kitchenEnvs != null && kitchenEnvs != '') {
             common.infoMsg("Found " + kitchenEnvs.size() + " environment(s)")
-            print(kitchenEnvs)
             for (int i = 0; i < kitchenEnvs.size(); i++) {
+              def acc = 0
               if (acc >= parallelGroupSize) {
                 parallel kitchenTestRuns
                 kitchenTestRuns = [: ]