Skip to content

Commit

Permalink
Moved archival of the test report ‘*.xml’ and ‘*.fuel’ files in ‘runT…
Browse files Browse the repository at this point in the history
…ests’ in ‘Jenkinsfile’ from the ‘try’ block to the ‘finally’ block so that any such files are still archived when the test running step fails or times out.
  • Loading branch information
Rinzwind committed Mar 23, 2024
1 parent 730d640 commit e20c5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def runTests(architecture, prefix=''){
unstash "bootstrap${architecture}"
shell "bash -c 'bootstrap/scripts/run${prefix}Tests.sh ${architecture} ${env.STAGE_NAME}${prefix}'"
junit allowEmptyResults: true, testResults: "${env.STAGE_NAME}${prefix}*.xml"
} finally {
archiveArtifacts allowEmptyArchive: true, artifacts: "${env.STAGE_NAME}${prefix}*.xml", fingerprint: true
archiveArtifacts allowEmptyArchive: true, artifacts: "*.fuel", fingerprint: true
} finally {
// I am archiving the logs to check for crashes and errors.
if(fileExists('PharoDebug.log')){
shell "mv PharoDebug.log PharoDebug-${env.STAGE_NAME}${prefix}.log"
Expand Down

0 comments on commit e20c5b9

Please sign in to comment.