From 7ef1c7549e43c9872f06e93d651c3b115bee6851 Mon Sep 17 00:00:00 2001 From: sophia-guo Date: Fri, 2 Feb 2024 20:45:20 -0500 Subject: [PATCH] Move the junit publisher step to the end of the post stage (#4541) Avoid the junit publisher failures affecting other functions. Signed-off-by: Sophia Guo --- buildenv/jenkins/JenkinsfileBase | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/buildenv/jenkins/JenkinsfileBase b/buildenv/jenkins/JenkinsfileBase index 782f3cbe60..b52da44ca7 100644 --- a/buildenv/jenkins/JenkinsfileBase +++ b/buildenv/jenkins/JenkinsfileBase @@ -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) @@ -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}" + } } }