check if SALT_MASTER_URL is set
Change-Id: If39cd043328a18a07334502948ad42ef68e9474d
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy
index 34fa3ee..51ecd4f 100644
--- a/lab-pipeline.groovy
+++ b/lab-pipeline.groovy
@@ -544,11 +544,12 @@
build job: 'deploy-heat-cleanup', parameters: [[$class: 'StringParameterValue', name: 'HEAT_STACK_NAME', value: HEAT_STACK_NAME]]
}
} else {
- common.errorMsg("""
- Deploy job FAILED and was not deleted.
- Please fix the problem and delete stack on you own.
+ common.errorMsg("Deploy job FAILED and was not deleted. Please fix the problem and delete stack on you own.")
- Salt master URL: ${SALT_MASTER_URL}""")
+ if (SALT_MASTER_URL) {
+ common.errorMsg("Salt master URL: ${SALT_MASTER_URL}")
+ }
+
}
}
}