How to fix Jenkins HTML "checksum mismatch" report?

I got a brand new Jenkins machine running on Linux Ubuntu. I use HTML Publisher Plugin to publish my html reports. I also use Jsystem to invoke a test script.

  • Jenkins 1.643
  • Html Publisher Plugin 1.10

At the end of the test, when opening the report, the last html from the main page of the project I get this error:

Checksum mismatch

The checksum of the current wrapper file (0dd0c5ec07dff1d7179f03b5deb290e96ac68f8c) does not match the registered checksum (090f21ac5f8c4b0eed9e789145a2fe2a6134c900). This indicates a possible security issue, so Jenkins will not service this file. Here you can access archived HTML files.

I checked file availability and permissions. If I open the report on the assignment page, everything will work.

UPDATE

When I open the report from the assignment page, I do not have CSS and many errors. Looks like a security issue.

UPDATE 2 :

CSS and Javascript are back, Jenkins has had an update in the content security policy . Added arguments to Jenkins startup scripts. The first release is still on. :(

+5
source share
2 answers

This is a bug in this version of the pluggable HTML publisher. The error occurs if there are several reports in your task, check the publication option: “Store HTML reports”, and then click the second report.

https://issues.jenkins-ci.org/browse/JENKINS-32281

The solution is at https://jenkins.ci.cloudbees.com/job/plugins/job/htmlpublisher-plugin/61/ .

The solution is released as a 1.11 plug-in.

+4
source

this worked for me: Blocked script execution in <URL>. because the document frame is sandboxed and the allow-scripts permission is not set

System.setProperty ("hudson.model.DirectoryBrowserSupport.CSP", "")

0
source

Source: https://habr.com/ru/post/1238964/


All Articles