Shell exit strikes again, added || true
Change-Id: I22757254de05c130e357761174260c5c13fdf297
diff --git a/vars/volthaInfraDeploy.groovy b/vars/volthaInfraDeploy.groovy
index e76a93a..bf1c0cb 100644
--- a/vars/volthaInfraDeploy.groovy
+++ b/vars/volthaInfraDeploy.groovy
@@ -41,14 +41,14 @@
*/
namespaces = sh(
- script: 'kubectl get namespaces',
+ script: 'kubectl get namespaces || true',
returnStdout: true
).trim()
print(namespaces)
// Document prior to removal
namespaces.each{namespace ->
- namespaces = sh("kubectl describe namespaces ${namespace}")
+ namespaces = sh("kubectl describe namespaces ${namespace} || true")
}
/*