Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to see the HTML reports Gradle generates in Jenkins

Tags:

gradle

jenkins

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.

like image 237
user2047824 Avatar asked Mar 21 '16 20:03

user2047824


1 Answers

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/

enter image description here

like image 194
daspilker Avatar answered Sep 19 '22 13:09

daspilker