I want to configure the hudson.model.DirectoryBrowserSupport.CSP
property so that it’s set by default every time Jenkins starts. I tried doing this by adding the JAVA_ARGS
entry in the /etc/default/jenkins
file, but it doesn’t seem to be working.
JAVA_ARGS=“-Djava.awt.headless=true -Dhudson.model.DirectoryBrowserSupport.CSP="default-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’; img-src data:;"”