Using JavaScript within jelly script
I'm trying to use scripts written in JavaScript in Jenkins. I think that the easiet way would be to call them in .jelly scripts. For example: I have file myCustom.js : alert("Hello World!"); function myFunction() { var x = "", i; for (i=0; i<5; i++) { x = x + "The number is " + i + "<br>"; } document.getElementById("demo").innerHTML = x; } Next I have: global.jelly (from tutorial plugin): <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form"> <f:section title="Hello World Builder"> <f:entry title="French"