Don't let command fail
Change-Id: Ia0c0fc759ce933ae8ca780eaf9aac00babe399e9
diff --git a/cicd-lab-pipeline.groovy b/cicd-lab-pipeline.groovy
index 2e799b6..df4b477 100644
--- a/cicd-lab-pipeline.groovy
+++ b/cicd-lab-pipeline.groovy
@@ -264,7 +264,7 @@
}
salt.enforceState(saltMaster, 'I@nginx:server', 'nginx')
- def failedSvc = salt.cmdRun(saltMaster, '*', """systemctl --failed | grep -E 'loaded[ \t]+failed' && echo 'Command execution failed'""")
+ def failedSvc = salt.cmdRun(saltMaster, '*', """systemctl --failed | grep -E 'loaded[ \t]+failed' && echo 'Command execution failed' || true""")
print common.prettyPrint(failedSvc)
if (failedSvc =~ /Command execution failed/) {
common.errorMsg("Some services are not running. Environment may not be fully functional!")