Skip to content

Commit

Permalink
HADOOP-17904. Test Result Not Working In Jenkins Result. (apache#3413)…
Browse files Browse the repository at this point in the history
…. Contributed by Ayush Saxena.
  • Loading branch information
ayushtkn authored and Kiran Kumar Maturi committed Nov 24, 2021
1 parent e1384b5 commit 3eee20a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev-support/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ def publishJUnitResults() {
boolean surefireReportsExist = findCmdExitCode == 0
if (surefireReportsExist) {
echo "XML files found under surefire-reports, running junit"
// The path should be relative to WORKSPACE for the junit.
SRC = "${SOURCEDIR}/**/target/surefire-reports/*.xml".replace("$WORKSPACE/","")
try {
junit "${SOURCEDIR}/**/target/surefire-reports/*.xml"
junit "${SRC}"
} catch(e) {
echo 'junit processing: ' + e.toString()
}
Expand Down

0 comments on commit 3eee20a

Please sign in to comment.