HADOOP-17904. Test Result Not Working In Jenkins Result. (#3413). Contributed by Ayush Saxena.
This commit is contained in:
parent
90bc688c78
commit
4d18a2eb99
4
dev-support/Jenkinsfile
vendored
4
dev-support/Jenkinsfile
vendored
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user