Jnnngs
Home
About
 Admin
  ~1 minute

Jenkins: Allow inline styling HTML Report Artefacts

Jenkins inline styling for artefacts is disabled by default for security reasons. The following guide shows how to re-0enable this.

  1. Go to Manage Jenkins
  2. Then go to Script Console and run the following command:-

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "default-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' 'unsafe-inline' data:;")