Friday, June 03, 2016

Allow HTML report containing inline scripts and styles in Jenkins

In Order Jenkins to display HTML reports which uses JS and CSS, I executed following command from Manage Jenkins => Scripe Console

System.setProperty("hudson.model.DirectoryBrowserSupport.CSP","sandbox allow-scripts allow-same-origin; default-src 'self'; script-src 'self' 'unsafe-inline'; img-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';")

1 comment:

sumon tripura said...

I can see that you are putting a lot of efforts into your blog. Keep posting the good work. Some really helpful information in there. Nice to see your site. For more information visit legal herbal empire for sale