I'm having a heck of a time trying to publish any HTML report with htmlpublisher.
My input looks like this:
And the 404 looks like this:
The report is definitely generated in build/
. I've visually compared my config.xml file to a known working example and it's apparently the same. The entry in jobs/
is there, with the correct name and documentation.
I can't figure out what I'm doing wrong. I've checked the "keep past HTML reports" box, unchecked it, played with the paths, read the (poor) documentation but I can't seem to get it working. Can anyone help?
Go to "Post-build Actions" -> Choose "publish html reports". Add your directory where the custom report is, for example: /test-output. Add the index file under Index page[s], for example: custom-report.
The HTML Publisher plugin is useful to publish HTML reports that your build generates to the job and build pages. It is designed to work with both Freestyle projects as well as being used in a Jenkins Pipeline.
What version of Jenkins are you running? I'm seeing this issue on all of my projects since updating to 1.529. The files are being copied to jobs/ correctly as you mentioned.
The answer you accepted is incorrect and contradicts the documentation at https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin
EDIT: The issue has been resolved in 1.530: https://jenkins-ci.org/changelog I've updated and I'm not seeing 404s anymore.
The developers of Jenkins has confirmed that this issue is related to the version 1.529 and it is solved in 1.530.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With