-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins 1.625.3 LTS
HTML publisher 1.10
Since updating from 1.625.2 LTS to 1.625.3 LTS, javascript embedded within HTML published with the HTML publisher plugin does not seem to execute anymore.
For example if I have the following HTML file:
<html> <body> <h1>Test Results</h1> <script type="text/javascript" src="test.js"></script> </body> </html>
and test.js contains:
document.write('<h2>Summary</h2>');
The published webpage only shows "Test Results" whereas it should show:
Test Results
Summary
With Jenkins LTS 1.625.3, there is a default rules set that prevent Javascript execution.
If you want to relax these rules, please have a look here:
https://wiki.jenkins-ci.org/display/JENKINS/Configuring+Content+Security+Policy
Please tell us if it solves your problem.