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 2018/12/27 19:09:19 UTC
[maven-surefire] branch master updated: [jenkinsfile] archived test
results if not success
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new 4b94f92 [jenkinsfile] archived test results if not success
4b94f92 is described below
commit 4b94f920cc6b60da446b3a325ec4f6f76a3c2818
Author: Tibor17 <ti...@apache.org>
AuthorDate: Thu Dec 27 20:08:49 2018 +0100
[jenkinsfile] archived test results if not success
---
Jenkinsfile | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 5166d0f..5ca0b9a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -187,15 +187,17 @@ def buildProcess(String stageKey, String jdkName, String jdkTestName, String mvn
}
}
- if (fileExists('maven-failsafe-plugin/target/it')) {
- zip(zipFile: "maven-failsafe-plugin--${stageKey}.zip", dir: 'maven-failsafe-plugin/target/it', archive: true)
- }
+ 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)
- }
+ 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)
+ archiveArtifacts(artifacts: "*--${stageKey}.zip", allowEmptyArchive: true, onlyIfSuccessful: false)
+ }
}
stage("cleanup ${stageKey}") {