0

Referring to this

Jenkins - HTML Publisher Plugin - No CSS is displayed when report is viewed in Jenkins Server

I want to see the effect of System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "") permanently. So can this be added in jenkins pipeline?

Thank You

mv402506
  • 9
  • 4
  • Does this answer your question? [Jenkins Content Security Policy](https://stackoverflow.com/questions/37618892/jenkins-content-security-policy) – Noam Helmer Nov 15 '21 at 07:15
  • -Dhudson.model.DirectoryBrowserSupport.CSP="sandbox allow-scripts; default-src 'self'; style-src 'self' 'unsafe-inline';" How to add this in jenkins code? – mv402506 Nov 15 '21 at 07:23
  • I mean i want to do it in jenkins code and not jenkins.xml – mv402506 Nov 15 '21 at 07:24
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 18 '21 at 12:10

0 Answers0