Move rebooting nodes after scm checkout
MOSSUST-109
Change-Id: I5ef19e8293c8169a87024b964a86bbe496d81674
diff --git a/jobs/pipelines/deploy-cicd-and-run-tests.groovy b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
index 24f65a7..52d982b 100644
--- a/jobs/pipelines/deploy-cicd-and-run-tests.groovy
+++ b/jobs/pipelines/deploy-cicd-and-run-tests.groovy
@@ -32,6 +32,19 @@
shared.prepare_working_dir(env_manager)
}
+ if (env.IPMI_CREDS) {
+ withCredentials([
+ [$class : 'UsernamePasswordMultiBinding',
+ credentialsId : "${IPMI_CREDS}",
+ passwordVariable: 'IPMI_PASS',
+ usernameVariable: 'IPMI_USER']
+ ]) {
+ env.IPMI_PASS = IPMI_PASS
+ env.IPMI_USER = IPMI_USER
+ shared.reboot_hardware_nodes("${IPMI_CREDS}")
+ }
+ }
+
stage("Create environment, generate model, bootstrap the salt-cluster") {
// steps: "hardware,create_model,salt"
if (env_manager == 'devops') {
@@ -131,19 +144,6 @@
node ("${NODE_NAME}") {
env.slave_workdir = pwd()
try {
- if (env.IPMI_CREDS) {
- withCredentials([
- [$class : 'UsernamePasswordMultiBinding',
- credentialsId : "${IPMI_CREDS}",
- passwordVariable: 'IPMI_PASS',
- usernameVariable: 'IPMI_USER']
- ]) {
- env.IPMI_PASS = IPMI_PASS
- env.IPMI_USER = IPMI_USER
- shared.reboot_hardware_nodes("${IPMI_CREDS}")
- }
- }
-
// run deploy stages
deploy(shared, common, steps, env_manager, batch_size, dist_upgrade_nodes, upgrade_saltstack)
// run test stages