Fix sleep duration unit
Change-Id: I8c9ddf73c4b83cde45aa639c4aa00f4c413cc34f
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index 579d47f..3fbda13 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -100,7 +100,7 @@
stage("Deploy GlusterFS") {
salt.enforceState(saltMaster, 'I@glusterfs:server', 'glusterfs.server.service', true)
salt.enforceState(saltMaster, 'ci01*', 'glusterfs.server.setup', true)
- sleep(5)
+ sleep(5000)
salt.enforceState(saltMaster, 'I@glusterfs:client', 'glusterfs.client', true)
print salt.cmdRun(saltMaster, 'I@glusterfs:client', 'mount|grep fuse.glusterfs || echo "Command failed"')
}
@@ -124,7 +124,7 @@
// XXX: Hack to fix dependency of gerrit on mysql
print salt.cmdRun(saltMaster, 'I@docker:swarm:role:master', "docker service rm gerrit; sleep 5; rm -rf /srv/volumes/gerrit/*")
- sleep(30)
+ sleep(10000)
print salt.cmdRun(saltMaster, 'I@docker:swarm:role:master', "apt-get install -y mysql-client; mysql -ppassword -h172.16.10.254 -e'drop database gerrit;create database gerrit;'")
salt.enforceState(saltMaster, 'I@docker:swarm:role:master', 'docker.client')
// ---- cut here (end of hack) ----
@@ -141,7 +141,7 @@
}
}
}
- sleep(30)
+ sleep(10000)
}
}