The HTML Publisher Plugin plugin installed by Jenkins does not show the ant-generated Junitreport report

Source: Internet
Author: User

Recently, with the continuous integration of Jenkins ant JUnit-based testing, separate ant JUnit-generated junitreport reports are turned on normally, and the HTML Publisher Plugin plugin using Jenkins does not display the report content properly. There are only three frame placeholder boxes, as shown in

This is due to some of Jenkins security settings caused by the display of the problem, click F12, you can see the following error

Solutions

Method One: Login to the Jenkins system, click "System Management"----"script command line", execute the following command, re-refresh the Junitreport log page to see the entire content

System.setproperty (default-src ' self ';

Method Two:

Method one is only temporary modification, if you want to restart after the still valid, you can specify the startup parameters at startup

java-dhudson.model.directorybrowsersupport.csp=-jar Jenkins.war

The above is started directly through the war package, if Jenkins is launched through the Tomcat container, you can set parameters to execute, vi/etc/profile

Add a row of export java_opts= "-Dhudson.model.DirectoryBrowserSupport.CSP=\" sandbox; default-src ' self ';

    

Resources

Https://wiki.jenkins-ci.org/display/JENKINS/HTML+Publisher+Plugin

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

The HTML Publisher Plugin plugin installed by Jenkins does not show the ant-generated Junitreport report

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.