Temporary workaround for salt.orchestrateSystem function
Change-Id: Id20360897c56a7f1ea7c4e66ab104f6050878ca6
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index 74c882d..af8e5cb 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -205,7 +205,9 @@
//
try {
retry(3) {
- print salt.orchestrateSystem(saltMaster, ['expression': '*', 'type': 'compound'], 'sphinx.orch.generate_doc')
+ // 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')
}
} catch (Throwable e) {
// We don't want sphinx docs to ruin whole build, so possible
@@ -225,7 +227,7 @@
8091 Docker swarm visualizer
8090 Reclass-generated documentation
- Don't forget to terminate your stack when you don't needed!
+ Don't forget to terminate your stack when you don't need it!
============================================================"""
}
} catch (Throwable e) {