You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/07/15 07:36:57 UTC
[maven-surefire] branch buildfix updated: investigating build
failure
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch buildfix
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/buildfix by this push:
new c335f97 investigating build failure
c335f97 is described below
commit c335f97b44a83b91e0b02c4c66a9abc306a184ec
Author: tibordigana <ti...@apache.org>
AuthorDate: Mon Jul 15 09:36:48 2019 +0200
investigating build failure
---
Jenkinsfile | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/Jenkinsfile b/Jenkinsfile
index f7aea92..f850f7d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -162,6 +162,36 @@ def buildProcess(String stageKey, String jdkName, String jdkTestName, String mvn
}
}
} 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-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()
}