Skip to content

Commit

Permalink
Move the junit publisher step to the end of the post stage (#4541)
Browse files Browse the repository at this point in the history
Avoid the junit publisher failures affecting other functions.

Signed-off-by: Sophia Guo <[email protected]>
  • Loading branch information
sophia-guo authored Feb 3, 2024
1 parent dca6d77 commit 7ef1c75
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions buildenv/jenkins/JenkinsfileBase
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,6 @@ def post(output_name) {

step([$class: "TapPublisher", testResults: "aqa-tests/TKG/**/*.tap", outputTapToConsole: false, failIfNoResults: true])

junit allowEmptyResults: true, keepLongStdio: true, testResults: '**/work/**/*.jtr.xml, **/result/**/*.jtr.xml, **/junitreports/**/*.xml, **/external_test_reports/**/*.xml'

//call the archive function for each file
archiveFile("aqa-tests/testenv/testenv.properties", true)
archiveFile("aqa-tests/TKG/**/*.tap", true)
Expand Down Expand Up @@ -923,7 +921,14 @@ def post(output_name) {
uploadToArtifactory(pattern)
}
}

addFailedTestsGrinderLink()

try {
junit allowEmptyResults: true, keepLongStdio: true, testResults: '**/work/**/*.jtr.xml, **/result/**/*.jtr.xml, **/junitreports/**/*.xml, **/external_test_reports/**/*.xml'
} catch (Exception e) {
echo "Caught exception: ${e.message}"
}
}
}

Expand Down

0 comments on commit 7ef1c75

Please sign in to comment.