Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins can't generate HTML reports with htmlpublisher

I'm having a heck of a time trying to publish any HTML report with htmlpublisher.

My input looks like this:

enter image description here

And the 404 looks like this:

enter image description here

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?

like image 906
Ben Avatar asked Sep 06 '13 08:09

Ben


People also ask

How can I see the HTML report in Jenkins?

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.

Is html publisher useful plugins in Jenkins?

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.


2 Answers

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.

like image 98
Tindron Avatar answered Jan 17 '23 15:01

Tindron


The developers of Jenkins has confirmed that this issue is related to the version 1.529 and it is solved in 1.530.

like image 25
Sumeshk Avatar answered Jan 17 '23 17:01

Sumeshk