-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: promoted-builds-simple-plugin
Problem
== Inline Script Block
Line: 36
----
<script language="javascript">// <![CDATA[
YAHOO.util.Event.onContentReady("promotemenu", function () {
var promoteMenu = new YAHOO.widget.Menu("promotemenu",
{
position: "static",
hidedelay: 750,
lazyload: true,
effect: {
effect: YAHOO.widget.ContainerEffect.FADE,
duration: 0.25
},
itemdata: [ { text: "${%Promote Build}",
submenu: { id: "promotechoices", itemdata: [
<j:if test="${hasLevel}">
{ text: "${%None}", url: "promote/?level=0" },
</j:if>
<j:forEach var="level" indexVar="i" items="${it.allPromotionLevels}">
{ text: "${level.name}", url: "promote/?level=${i+1}"
<j:if test="${it.level == level.name}">, checked: true</j:if> },
</j:forEach>
] }
} ]
}
);
promoteMenu.render();
});
// ]]></script>
----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks