Skip to content

Commit 7050383

Browse files
committed
Merge branch 'l_exceptions' into 'master'
Minor enhancements on notifications and colors See merge request sysadmins/jenkins-adminsLib!13
2 parents ec95c5f + 9839639 commit 7050383

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vars/jobCommon.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ def cleanNotFinishedBuilds(statusesToClean = ['ABORTED', 'NOT_BUILT']) {
9292
}
9393

9494
// Processing exceptions in `catch` sections
95-
def processException(hudson.AbortException e) {
95+
def processException(java.lang.Exception e) {
9696
currentBuild.result = 'FAILURE'
97-
error "Something wrong, exception is: ${e}"
97+
error "Something wrong: ${e.getClass().getCanonicalName()} thrown with message: ${e.getMessage()}"
9898
}
9999

100100
// Post running slack notifications

0 commit comments

Comments
 (0)