Please follow below procedure, go to Manage Jenkins->Script console and type in the following command :System.setProperty("hudson.model.DirectoryBrowserSupport.CSP", "")and Press Run. If you see the output as 'Result:' below "Result" header then the protection disabled. Re-Run your build and you can see that the new HTML files archived will have the CSS enabled.Reason : CSS is striped because of the Content Security Policy in Jenkins. (https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy)The default rule is set to:sandbox; default-src 'none'; img-src 'self'; style-src 'self';This rule set results in the following:No JavaScript allowed at allNo plugins (object/embed) allowedNo inline CSS, or CSS from other sites allowedNo images from other sites allowedNo frames allowedNo web fonts allowedNo XHR/AJAX allowed, etc.Please note if you are not happy with the response on this ticket, please escalate it to escalations@edureka.in.We assure you that we will get back to you within 24 hoursRegards,Yeshwanth at Edurekaedureka! Support Team
HTML Report Devops Print
Modified on: Sun, 16 Apr, 2017 at 11:34 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.