Reboot HW servers for bm-depoyments (doesn'r require starting of deploy-bm job)

Also added TCP_QA_REFS option to deploy_bm job

PROD-36050

Change-Id: I413e3d34986fdb7a55967ba151a7a878c98535f2
diff --git a/jobs/pipelines/deploy-cicd-and-run-tests.groovy b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
index 7207b84..07684cf 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -28,6 +28,18 @@
             shared.prepare_working_dir(env_manager)
         }
 
+        // Reboot Hardware before the BM deployments
+        if ("$ENV_NAME".contains("bm-")){
+            reboot_hw_nodes = env.REBOOT_HW_NODES ?: false
+            stage("Reboot HW nodes") {
+                if (reboot_hw_nodes) {
+                    shared.reboot_hardware_nodes()
+                } else {
+                    common.printMsg("REBOOT_HW_NODES is disabled. Skipping this stage...", "blue")
+                }
+            }
+        }
+
         stage("Create environment, generate model, bootstrap the salt-cluster") {
             // steps: "hardware,create_model,salt"
             if (env_manager == 'devops') {