-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: dynamic_extended_choice_parameter-plugin
Problem
== Inline Script Block
Line: 25
----
<script>
<![CDATA[
(function() {
var f = function() {
var height = 0;
var maxCount = ${index};
if(maxCount > ${it.visibleItemCount}) {
maxCount = ${it.visibleItemCount};
}
if(maxCount > 0 && document.getElementById("ecp_${it.name}_0").offsetHeight !=0) {
for(var i=0; i< maxCount; i++) {
height += document.getElementById("ecp_${it.name}_" + i).offsetHeight + 3;
}
}
else {
height = maxCount * 25.5;
}
height = Math.floor(height);
document.getElementById("ecp_${it.name}").style.height = height + "px";
};
f();
})();
]]>
</script>
----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks