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

olamy pushed a commit to branch ci-reporting
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/ci-reporting by this push:
     new dbea599  log some error details
dbea599 is described below

commit dbea599e03b8b812698e96ba44e5c84c19feac2f
Author: Olivier Lamy <[email protected]>
AuthorDate: Thu Mar 3 17:56:53 2022 +1000

    log some error details
    
    Signed-off-by: Olivier Lamy <[email protected]>
---
 Jenkinsfile | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ac853e8..2166eb0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -180,11 +180,15 @@ def buildProcess(String stageKey, String jdkName, String 
mvnName, goals, options
         try {
             if (makeReports) {
 
-                echo "finally clause and makeReports branch stageKey 
${stageKey}"
-                recordIssues id: "${stageKey}", name: "Static Analysis",
-                          aggregatingResults: true, enabledForFailure: true,
-                          tools: [mavenConsole(), java(), checkStyle(), 
spotBugs(), pmdParser(), errorProne(),tagList()]
-
+                try {
+                    echo "finally clause and makeReports branch stageKey 
${stageKey}"
+                    recordIssues id: "${stageKey}", name: "Static Analysis",
+                       aggregatingResults: true, enabledForFailure: true,
+                       tools: [mavenConsole(), java(), checkStyle(), 
spotBugs(), pmdParser(), errorProne(),tagList()]
+                } catch (Throwable e) {
+                  println "Throwable: ${e}"
+                  throw e
+                }
                 jacoco(changeBuildStatus: false,
                         execPattern: '**/target/jacoco*.exec',
                         sourcePattern: sourcesPatternCsv(),

Reply via email to