Skip to content

Commit 3eee20a

Browse files
ayushtknKiran Kumar Maturi
authored andcommitted
HADOOP-17904. Test Result Not Working In Jenkins Result. (apache#3413). Contributed by Ayush Saxena.
1 parent e1384b5 commit 3eee20a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev-support/Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ def publishJUnitResults() {
3030
boolean surefireReportsExist = findCmdExitCode == 0
3131
if (surefireReportsExist) {
3232
echo "XML files found under surefire-reports, running junit"
33+
// The path should be relative to WORKSPACE for the junit.
34+
SRC = "${SOURCEDIR}/**/target/surefire-reports/*.xml".replace("$WORKSPACE/","")
3335
try {
34-
junit "${SOURCEDIR}/**/target/surefire-reports/*.xml"
36+
junit "${SRC}"
3537
} catch(e) {
3638
echo 'junit processing: ' + e.toString()
3739
}

0 commit comments

Comments
 (0)