Skip to content

Commit 547b8cf

Browse files
author
Cuba Stanley
authored
Merge pull request javaee-samples#28 from payara/DEVOPS-795
Fix post step
2 parents 0343e06 + 07e72b3 commit 547b8cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.jenkins/modules/Test/Test.groovy

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ MPLPostStep('always') {
33
}
44

55
MPLPostStep('failure') {
6-
echo "There are test failures, archiving server log"
7-
archiveArtifacts artifacts: "./${getPayaraDirectoryName}/glassfish/domains/${getDomainName()}/logs/server.log"
6+
echo "There are test failures, archiving server logs to ${CFG.suite.suite_name}-Logs.zip"
7+
sh "cp -R ./${getPayaraDirectoryName(CFG.'build.version')}/glassfish/domains/${CFG.domain_name}/logs ./${CFG.suite.suite_name}-Logs"
8+
archiveArtifacts artifacts: "${CFG.suite.suite_name}-Logs/**/*.*"
89
}
910

1011
withMaven(jdk: CFG.jdk, options: [artifactsPublisher(disabled: true)]) {

0 commit comments

Comments
 (0)