Fixing fabric config for build system
Change-Id: Ifd9d38b8fbaeae10c16c80bdff9755935cf155c3
(cherry picked from commit 5873cc6dd05a82b81ab52430fc9125b14f317337)
(cherry picked from commit 2740ec3cb89e8ef733ec8d0549d73388dbd09473)
diff --git a/Jenkinsfile.newBuildSystem b/Jenkinsfile.newBuildSystem
index 2ef7bd4..22bc146 100644
--- a/Jenkinsfile.newBuildSystem
+++ b/Jenkinsfile.newBuildSystem
@@ -222,14 +222,21 @@
"${config.fabric_switches[i].pass}",
"sed -i -e 's/#port_mode_${config.fabric_switches[i].breakout_ports[j]}=/port_mode_${config.fabric_switches[i].breakout_ports[j]}=/g' /etc/accton/ofdpa.conf")
}
- // Prepending killit command with ! ensures the command will return exit status 0
+ // Pre-pending killit command with ! ensures the command will return exit status 0
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/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")
}
}
}