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 582c9ab [jenkinsfile] removed unnecessary 'fileExists()'
582c9ab is described below
commit 582c9ab5377963b16c0303ee642947d3ed380a52
Author: Tibor Digana <[email protected]>
AuthorDate: Sun Dec 26 10:58:01 2021 +0000
[jenkinsfile] removed unnecessary 'fileExists()'
---
Jenkinsfile | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index f49e93d..9725d9b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -195,14 +195,8 @@ def buildProcess(String stageKey, String jdkName, String
jdkTestName, String mvn
}
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)
- }
-
+ zip(zipFile: "maven-failsafe-plugin--${stageKey}.zip", dir:
'maven-failsafe-plugin/target/it', archive: true)
+ zip(zipFile: "surefire-its--${stageKey}.zip", dir:
'surefire-its/target', archive: true)
archiveArtifacts(artifacts: "*--${stageKey}.zip",
allowEmptyArchive: true, onlyIfSuccessful: false)
}
} finally {