Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save willycedric/44980bca9b24d6b41768a9069cfe17a5 to your computer and use it in GitHub Desktop.
Save willycedric/44980bca9b24d6b41768a9069cfe17a5 to your computer and use it in GitHub Desktop.
How to allow css and javascript in jenkins report
Windows Jenkins server
A permanent fix is to change a line in [Jenkins directory]\jenkins.xml (for me it's at C:\Jenkins\jenkins.xml)
<executable>java.exe</executable>
<arguments>[arguments are here]</arguments>
Add the following argument to the whitespace-separated list of arguments:
-Dhudson.model.DirectoryBrowserSupport.CSP=
-Dfile.encoding=UTF-8
e.g: <arguments>-Xrs -Xmx256m -Dhudson.model.DirectoryBrowserSupport.CSP= -Dfile.encoding=UTF-8
source:https://stackoverflow.com/questions/35783964/jenkins-html-publisher-plugin-no-css-is-displayed-when-report-is-viewed-in-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment