commit | cac28de7e17994fe1522c5de5169bd55f9cbcf72 | [log] [tgz] |
---|---|---|
author | Adam Tengler <atengler@mirantis.com> | Tue Aug 22 15:52:00 2017 +0200 |
committer | Adam Tengler <atengler@mirantis.com> | Tue Aug 22 15:52:21 2017 +0200 |
tree | 6f10dfcca0c7d12728b6960b64b812c3d0dafae8 | |
parent | 28982b6684734b2f620f6340d0f9e387faa162d8 [diff] [blame] |
Add error message to build description Change-Id: Ifffce007fbe9d3bc47ea57c30ee652b5e0bdb680
diff --git a/git-mirror-2way-pipeline.groovy b/git-mirror-2way-pipeline.groovy index c1c808c..4e2af09 100644 --- a/git-mirror-2way-pipeline.groovy +++ b/git-mirror-2way-pipeline.groovy
@@ -38,6 +38,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"])