Fix docs generation, closes PROD-9593
Change-Id: Idc32e13e2aca39ee181e971990bbb96938e2cb38
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index db3492a..11fc586 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -242,6 +242,13 @@
// Generate docs
//
try {
+ try {
+ // Run sphinx state to install sphinx-build needed in
+ // upcomming orchestrate
+ salt.enforceState(saltMaster, 'I@sphinx:server', 'sphinx')
+ } catch (Throwable e) {
+ true
+ }
retry(3) {
// TODO: fix salt.orchestrateSystem
// print salt.orchestrateSystem(saltMaster, ['expression': '*', 'type': 'compound'], 'sphinx.orch.generate_doc')