I upgraded to v2.2 of Jenkins on my server and I want to relax the new Content Security Policy configuration. I can successfully run
which temporarily sets the value and make the HTML output display properly. However when I restart Jenkins the value needs to be changed again. The web page says to run
java -Dhudson.model.DirectoryBrowserSupport.CSP= -jar jenkins.war
however the only file is located at
/usr/share/jenkins/jenkins.war and when I run the command on that file it tries to setup a new Jenkins instance.
Is there a different file or way to run this command for an Ubuntu service?