Improved setting error messages to jenkins job descriptions
Change-Id: Ia19224b7334d6fd468ecc40be87d5b4df795adc5
diff --git a/test-salt-models-pipeline.groovy b/test-salt-models-pipeline.groovy
index 59068d7..32ef43c 100644
--- a/test-salt-models-pipeline.groovy
+++ b/test-salt-models-pipeline.groovy
@@ -115,7 +115,7 @@
}
} catch (Throwable e) {
currentBuild.result = "FAILURE"
- currentBuild.description = e.message
+ currentBuild.description = currentBuild.description ? e.message + " " + currentBuild.description : e.message
throw e
} finally {
common.sendNotification(currentBuild.result,"",["slack"])