In this article, users will find the steps to generate an HTML Report Using Jenkins.

Pre-Requisite

Jenkins should be installed on your computer.

1. Download & Installation of HTML Publisher Plugin.

To Generate HTML reports in Jenkins, first, we have to Install HTML Publisher Plugin. To Install HTML Publisher Plugin, follow mentioned steps below.

  1. Goto Manage Jenkins

  2. Click/Go to the Manage Plugin section

  3. Search for an HTML Publisher plugin

  4. Install the Plugin and restart Jenkins

    Generate HTML Reports In Jenkins

2. Generate HTML report In Jenkins.

Once HTML Publisher Plugin is installed, then go to the Respective Job section and Verify HTML report is available.

3. SCRIPT CONSOLE SETTINGS

If the Report does not support in HTML Format view, then Navigate to the Script Console page, provide mentioned Command, and re-run the job build.

4. Re-Run Builds and Verify HTML REPORTS.

Once Script Console Setting is done, go to Job and Run Build.

Summary

The HTML Publisher plugin helps publish the reports your build generates to the job and build pages.

It is designed to work with both Freestyle projects and is used in a Jenkins Pipeline.

I hope this article will be helpful.

Happy Learning! Happy Testing!