jenkinshudsonhudson-api

How to publish individual HTML report in Hudson per job run


I have a parameterized Hudson job that generates HTML report as a result. I need to attach this HTML to the build NOT to the job as HTML report changes based on the parameters. http://wiki.hudson-ci.org/display/HUDSON/HTML+Publisher+Plugin did not help because it attaches report to the job and shows the HTML report from the latest build. Is there any way to attach HTMl report to the build that with hudson?


Solution

  • Yes, there is a way: Sidebar Link Plugin . Generate anything you want, deploy it anywhere ( Jenkins private files, which can then be accessed via http (described on plugin page at comments section) / some other http server ) and use the mentioned plugin to create a linked link for each job that will direct the clicker to html.

    You will need to add a post-build action in the job called 'Anchor chain' that will contained ( described on plugin page ) parameters which will be used to create additional sidebar link.