Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33653

HTML Publisher artifact does not load js script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • htmlpublisher-plugin
    • Jenkins Version 1.651
      HTML Publisher plugin: 1:11
      OS: Windows 7 64 bits

      Current Jenkins CSP settings:
      Result: sandbox; default-src 'self'; img-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline';

      However, when trying to access some TestNG/ReportNG generated reports, the console shows the error message below. Basically I cannot expand a Java StackTrace, because this requires a small javascript to run. Hard to say if this is a plugin issue or jenkins issue..

      Refused to load the script 'http://

      {my.domain}

      :8080/job/Web%20check%20-%20PRODUCTION/115/HTMLReport/reportng.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-inline'".

            r2b2_nz Richard Bywater
            vicus Vasile Pop
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: