How to see HTML Gradle reports generated in Jenkins

I have a Jenkins CI server running on a Linux virtual machine. Jenkins runs the Gradle task (build) and tests for my project.

I know that HTML reports for test results are generated in the project/build/reports folders.

Is there a way to see these reports using Jenkins? Or, when the build failed, can the notification email include a link to this report?

Many thanks.

+7
jenkins gradle
source share
1 answer

You can use the HTML Publisher Plugin to archive reports in Jenkins.

Add the post-build action “Publish HTML reports”, enter the directory containing your reports and specify the index page.

The link to the report will be displayed on the job page, and you can include the link by mail, for example. http: // localhost: 8080 / job / my-job / Tests /

enter image description here

+15
source share

All Articles