-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-17904. Test Result Not Working In Jenkins Result. #3413
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 (non-binding), thanks a lot @ayushtkn
🎊 +1 overall
This message was automatically generated. |
This looks good but I don't have a lot of experience here. |
@@ -30,8 +30,9 @@ def publishJUnitResults() { | |||
boolean surefireReportsExist = findCmdExitCode == 0 | |||
if (surefireReportsExist) { | |||
echo "XML files found under surefire-reports, running junit" | |||
SRC = "${SOURCEDIR}/**/target/surefire-reports/*.xml".replace("$WORKSPACE/","") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a comment here mentioning that the path must be relative to the checkout dir?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path used to have env.SOURCEDIR
prefix before I made this change -
hadoop/dev-support/Jenkinsfile
Line 145 in ef5dbc7
junit "${env.SOURCEDIR}/**/target/surefire-reports/*.xml" |
env.SOURCEDIR
resolving to the absolute path back then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so:
hadoop/dev-support/Jenkinsfile
Line 32 in ef5dbc7
SOURCEDIR = 'src' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now:
https://github.com/apache/hadoop/blob/trunk/dev-support/Jenkinsfile#L259
SOURCEDIR = "${WORKSPACE}/ubuntu-focal/src"
🎊 +1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…. Contributed by Ayush Saxena.
Working Example:
#2773 (comment)
The Test Report link works in the above build
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2773/10/testReport/