Split multiple commands in separate sessions to avoid permission problems

Change-Id: Ib9ac49493108e3460049fdae9cbf44322807f02a
diff --git a/Jenkinsfile.newBuildSystem b/Jenkinsfile.newBuildSystem
index a8b6a6c..2e53c1a 100644
--- a/Jenkinsfile.newBuildSystem
+++ b/Jenkinsfile.newBuildSystem
@@ -228,7 +228,14 @@
                                         "${config.fabric_switches[i].ip}",
                                         "${config.fabric_switches[i].user}",
                                         "${config.fabric_switches[i].pass}",
-                                        "/root/killit; /root/connect -bg")
+                                        "/root/killit")
+                                     runFabricCmd("${config.head.ip}",
+                                        "${config.head.user}",
+                                        "${config.head.pass}",
+                                        "${config.fabric_switches[i].ip}",
+                                        "${config.fabric_switches[i].user}",
+                                        "${config.fabric_switches[i].pass}",
+                                        "/root/connect -bg")
                                 }
                           }
                     }