-
Task
-
Resolution: Unresolved
-
Minor
Problem
== Inline Script Block Line: 45 ---- <script type="text/javascript"> var summary = <st:bind value="${it}"/> var mode = "${mode}" =="true"; function getLinkedCell(rowOutput, value, link){ var cellOutput = rowOutput.insertCell(-1) cellOutput.class="pane" var a= document.createElement("a"); a.href = link; a.class="model-link inside" var result = document.createTextNode(value); a.appendChild(result); cellOutput.appendChild(a); } function getNormalCell2(rowOutput, a , align){ var cellOutput = rowOutput.insertCell(-1) cellOutput.class="pane" cellOutput.style.textAlign = align var result = document.createTextNode(a); cellOutput.appendChild(result); } function getNormalCell(rowOutput, a) { getNormalCell2(rowOutput, a, "center"); } function getSummary(time){ document.getElementById("summary-table").style.display=""; document.getElementById("summary-table-header").style.display=""; var tbody = document.createElement("tbody"); summary.getActions(time,function(t) { var actions = t.responseObject(); var emptyCell= {content:"--", tooltip:""}; var table = document.getElementById("summary-table"); document.getElementById("summary-table-header").innerHTML="<h2>Summary at time "+actions[0]+"<//h2>"; for( i=1; i< actions.length; i++) { if(!mode && !actions[i].hasOwnProperty('testname') ) continue; var rowOutput = tbody.insertRow(-1); var a = actions[i] if (mode){ getLinkedCell(rowOutput,a['action'], a['url']); } if (a.hasOwnProperty('testname')){ rowOutput.class="test-row" getLinkedCell(rowOutput,a['testname'], a['testurl']); } else { getNormalCell2(rowOutput,"--", "left"); rowOutput.class="action-row" } getNormalCell(rowOutput,a['status']); getNormalCell(rowOutput,a['age']); getNormalCell(rowOutput,a['duration']); getNormalCell(rowOutput,a['host']); } table.replaceChild(tbody,table.tBodies[1] ) }); } </script> ----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks