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 23:28:47 UTC

[maven-jenkins-lib] branch master updated: Verbose info about failure - add bit more

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 e67dad7  Verbose info about failure - add bit more
e67dad7 is described below

commit e67dad7d5631bfec348e35f6a438a6b87e316768
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Wed Jan 23 00:28:45 2019 +0100

    Verbose info about failure - add bit more
---
 vars/asfMavenTlpStdBuild.groovy | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/vars/asfMavenTlpStdBuild.groovy b/vars/asfMavenTlpStdBuild.groovy
index 3c6004c..5b83233 100644
--- a/vars/asfMavenTlpStdBuild.groovy
+++ b/vars/asfMavenTlpStdBuild.groovy
@@ -121,6 +121,8 @@ def call(Map params = [:]) {
                   }
                 }
               } catch (Throwable e) {
+                echo "[FAILURE-004] ${e}"
+                echo currentBuild.rawBuild.getCauses()
                 // First step to keep the workspace clean and safe disk space
                 cleanWs()
                 if (!failFast) {
@@ -149,8 +151,8 @@ def call(Map params = [:]) {
     if (e.causes.size() == 0) {
       currentBuild.result = "ABORTED"
     } else {
-      echo "FAILURE-002 FlowInterruptedException ${e}"
       currentBuild.result = "FAILURE"
+      echo "[FAILURE-002] FlowInterruptedException ${e}"
     }
     throw e
   } catch (hudson.AbortException e) {
@@ -158,16 +160,17 @@ 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"
+      echo "[FAILURE-003] AbortException ${e}"
     }
     throw e
   } catch (InterruptedException e) {
     currentBuild.result = "ABORTED"
     throw e
   } catch (Throwable e) {
-    echo "FAILURE-001 ${e}"
     currentBuild.result = "FAILURE"
+    echo "[FAILURE-001] ${e}"
+    echo currentBuild.rawBuild.getCauses()
     throw e
   } finally {
     // notify completion