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

tibordigana pushed a commit to branch SUREFIRE-1689
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/SUREFIRE-1689 by this push:
     new cc7aba1  all mvn builds are successful but Jenkins fails
cc7aba1 is described below

commit cc7aba154d156a8092de4f71d7c561b461648874
Author: tibordigana <[email protected]>
AuthorDate: Mon Oct 14 23:45:52 2019 +0200

    all mvn builds are successful but Jenkins fails
---
 Jenkinsfile | 38 +++-----------------------------------
 1 file changed, 3 insertions(+), 35 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index c7b0a46..0c4a1a5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -112,7 +112,7 @@ timeout(time: 12, unit: 'HOURS') {
         currentBuild.result = 'FAILURE'
         throw e
     } finally {
-        jenkinsNotify()
+        //jenkinsNotify()
     }
 }
 
@@ -151,6 +151,7 @@ def buildProcess(String stageKey, String jdkName, String 
jdkTestName, String mvn
                     def script = cmd + ['\"-Djdk.home=$JAVA_HOME_IT\"']
                     def error = sh(returnStatus: true, script: script.join(' 
'))
                     currentBuild.result = error == 0 ? 'SUCCESS' : 'FAILURE'
+                    println "error code = ${error}"
                 }
             } else {
                 withEnv(["JAVA_HOME=${tool(jdkName)}",
@@ -163,44 +164,11 @@ def buildProcess(String stageKey, String jdkName, String 
jdkTestName, String mvn
                     def script = cmd + ['\"-Djdk.home=%JAVA_HOME_IT%\"']
                     def error = bat(returnStatus: true, script: script.join(' 
'))
                     currentBuild.result = error == 0 ? 'SUCCESS' : 'FAILURE'
+                    println "error code = ${error}"
                 }
             }
         }
     } finally {
-        if (makeReports) {
-            openTasks(ignoreCase: true, canComputeNew: false, defaultEncoding: 
'UTF-8', pattern: sourcesPatternCsv(),
-                    high: tasksViolationHigh(), normal: 
tasksViolationNormal(), low: tasksViolationLow())
-
-            jacoco(changeBuildStatus: false,
-                    execPattern: '**/*.exec',
-                    sourcePattern: sourcesPatternCsv(),
-                    classPattern: classPatternCsv())
-
-            junit(healthScaleFactor: 0.0,
-                    allowEmptyResults: true,
-                    keepLongStdio: true,
-                    testResults: testReportsPatternCsv())
-
-            if (currentBuild.result == 'UNSTABLE') {
-                currentBuild.result = 'FAILURE'
-            }
-        }
-
-        if (currentBuild.result != null && currentBuild.result != 'SUCCESS') {
-            if (fileExists('maven-booter/target')) {
-                zip(zipFile: "maven-booter--${stageKey}.zip", dir: 
'maven-booter/target', archive: true)
-            }
-
-            if (fileExists('maven-failsafe-plugin/target/it')) {
-                zip(zipFile: "maven-failsafe-plugin--${stageKey}.zip", dir: 
'maven-failsafe-plugin/target/it', archive: true)
-            }
-
-            if (fileExists('surefire-its/target')) {
-                zip(zipFile: "surefire-its--${stageKey}.zip", dir: 
'surefire-its/target', archive: true)
-            }
-
-            archiveArtifacts(artifacts: "*--${stageKey}.zip", 
allowEmptyArchive: true, onlyIfSuccessful: false)
-        }
         // clean up after ourselves to reduce disk space
         cleanWs()
     }

Reply via email to