Jenkins HTML Publisher Plugin not processing CSS

Abu Eesa
FusionQA
Published in
Jan 11, 2019

I had setup some Jenkins jobs and as a post-build action used the HTML Publisher Plugin to generate some HTML reports for my jobs.

But the odd thing was the HTML reports were not displaying with the CSS styles. So it was just plain HTML which looked ugly.

A simple fix solved this problem:

Go to “Manage Jenkins” -> “Script console” and run below command:

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

Re-run your job(s) and the HTML reports now show the CSS styles too.

--

--