Skip to content

Commit

Permalink
[jenkinsfile] removed unnecessary 'fileExists()'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibor17 committed Dec 26, 2021
1 parent 24f8dd6 commit 582c9ab
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Jenkinsfile
Expand Up @@ -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 {
Expand Down

0 comments on commit 582c9ab

Please sign in to comment.