Troubleshoot when you use HTML Publisher plug-ins under Jenkins to view HTML reports that appear unhealthy

Source: Internet
Author: User

After viewing the official documentation, this was originally a security issue.

Jenkins security default is to turn off the following features

1. javascript
2. Built-in plugin on HTML
3. Built-in CSS or CSS from other stations
4, from the other station map
5. AJAX

My Web page uses CSS, so the display is not complete. Here's how to fix it:

In Jenkins System Management, enter the following script to run:

System.setproperty ("Hudson.model.DirectoryBrowserSupport.CSP", "" ")

Such as:

------>

View again, show correct

Attention:

This method applies only to versions of HTML Publisher Plugin to version 1.10

Reference Document: Https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy

Troubleshoot when you use HTML Publisher plug-ins under Jenkins to view HTML reports that appear unhealthy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.