I have a Jenkins CI server running on a Linux VM. Jenkins runs Gradle task (build) and tests for my project.
I know the HTML reports for test results are generated in project/build/reports
folders.
Is there way to see these reports using Jenkins? Or, when the build failed, can the notification email include the link to this report?
Thanks a lot.
You can use the HTML Publisher Plugin to archive the reports in Jenkins.
Add the "Publish HTML reports" post-build action, enter the directory containing your reports and specify the index page.
A link to the report will be displayed on the job's page and you can include the link in a mail, e.g. http://localhost:8080/job/my-job/Tests/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With