I have a Java program that uses Selenium to test web sites. However when I run the program in Jenkins it generates a HTML report. When I open the report I get it with out CSS loaded.
To fix this I usually go to Jenkins->Script console and type in the following command:
System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")
(As described here: https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy)
However after some time this rule is gone, so I need to put it into some config file.
My server is a Ubuntu 18.04 server. I have installed Jenkins under /var/lib/jenkins Here I have a file named config.xml, but I cant see any option on this hudson.model.DirectoryBrowserSupport.CSP.