Retry sphinx orchestrate

Change-Id: I1e5812dfda8c5c35a5c74d900f12e0626c11366f
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index af8e5cb..fa48fa1 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -207,7 +207,11 @@
                     retry(3) {
                         // TODO: fix salt.orchestrateSystem
                         // print salt.orchestrateSystem(saltMaster, ['expression': '*', 'type': 'compound'], 'sphinx.orch.generate_doc')
-                        print salt.cmdRun(saltMaster, 'I@salt:master', 'salt-run state.orchestrate sphinx.orch.generate_doc')
+                        def out = salt.cmdRun(saltMaster, 'I@salt:master', 'salt-run state.orchestrate sphinx.orch.generate_doc || echo "Command execution failed"')
+                        print out
+                        if (out =~ /Command execution failed/) {
+                            throw new Exception("Command execution failed")
+                        }
                     }
                 } catch (Throwable e) {
                     // We don't want sphinx docs to ruin whole build, so possible