Retry for glusterfs.server.setup
Change-Id: I28a1a69cd8819a0c014feb47fb379147784d5750
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index 342298a..a9f4edd 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -120,7 +120,9 @@
stage("Deploy GlusterFS") {
salt.enforceState(saltMaster, 'I@glusterfs:server', 'glusterfs.server.service', true)
- salt.enforceState(saltMaster, 'ci01*', 'glusterfs.server.setup', true)
+ retry(2) {
+ salt.enforceState(saltMaster, 'ci01*', 'glusterfs.server.setup', true)
+ }
sleep(5)
salt.enforceState(saltMaster, 'I@glusterfs:client', 'glusterfs.client', true)
print common.prettyPrint(salt.cmdRun(saltMaster, 'I@glusterfs:client', 'mount|grep fuse.glusterfs || echo "Command failed"'))