diff --git a/dev-support/Jenkinsfile b/dev-support/Jenkinsfile index 80e0572ac9..7896810d01 100644 --- a/dev-support/Jenkinsfile +++ b/dev-support/Jenkinsfile @@ -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() }