You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2019/01/22 22:27:28 UTC

[maven-jenkins-lib] branch master updated: More verbose info about build exceptions

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 73ae640  More verbose info about build exceptions
73ae640 is described below

commit 73ae640dc84051cced42dac98c0719a240c1fa28
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Tue Jan 22 23:27:26 2019 +0100

    More verbose info about build exceptions
---
 vars/asfMavenTlpStdBuild.groovy | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 239d589..3c6004c 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -149,6 +149,7 @@ def call(Map params = [:]) {
     if (e.causes.size() == 0) {
       currentBuild.result = "ABORTED"
     } else {
+      echo "FAILURE-002 FlowInterruptedException ${e}"
       currentBuild.result = "FAILURE"
     }
     throw e
@@ -157,6 +158,7 @@ def call(Map params = [:]) {
     if (e.getMessage().contains('script returned exit code 143')) {
       currentBuild.result = "ABORTED"
     } else {
+      echo "FAILURE-003 AbortException ${e}"
       currentBuild.result = "FAILURE"
     }
     throw e
@@ -164,6 +166,7 @@ def call(Map params = [:]) {
     currentBuild.result = "ABORTED"
     throw e
   } catch (Throwable e) {
+    echo "FAILURE-001 ${e}"
     currentBuild.result = "FAILURE"
     throw e
   } finally {