Creating HTML reports
The left-hand side of a job's dashboard is valuable real estate. The developer's eyes naturally scan this area. This recipe describes how you can add a link from a custom HTML report to the menu, getting the report noticed more quickly.
Getting ready
Install the publisher plugin (https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin). We assume that you have a subversion repository with the Packt code committed.
How to do it...
- Create a free-style software project and name it
CH9.html_report
. - Under the
Source Code Management
section, click onSubversion
. - Under the
Modules
section, addRepo/CH9.communicating/html_report
toRepository URL
, whereRepo
is the URL to your subversion repository. - Under the
Post-build Actions
section, checkPublish HTML reports
. Add the details:
HTML directory to archive
:target/custom_report
Index pages[s]
:index.html
Report title
:My HTML Report
- Tick the
Keep past HTML reports
checkbox
- Click on
Save
. - Run the job and review the left-hand...