Add error message to build description
Change-Id: Ifffce007fbe9d3bc47ea57c30ee652b5e0bdb680
diff --git a/aptly-promote-pipeline.groovy b/aptly-promote-pipeline.groovy
index 00d41b8..e5d9743 100644
--- a/aptly-promote-pipeline.groovy
+++ b/aptly-promote-pipeline.groovy
@@ -26,6 +26,7 @@
} catch (Throwable e) {
// If there was an error or exception thrown, the build failed
currentBuild.result = "FAILURE"
+ currentBuild.description = e.message
throw e
} finally {
common.sendNotification(currentBuild.result,"",["slack"])