Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question: My HTML reports don't render fully when viewed from Jenkins. Why?


Answer: By default, Content Security Policy header is set to a very restrictive default set of permissions to protect Jenkins users from malicious HTML/JS files in workspaces.

Content Security Policy can be relaxed according to these steps: https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy.

The following command helps render packager, forecast and deploy HTML reports.

  • In Jenkins, go to "Manage Jenkins"

  • Click on "Script Console"

  • Run the following command:

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


...