I couldn't find any where to on how to include my own javascript to jenkins jelly file. So far I have added jquery using the following
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"/>
Say if I have myPageScripts.js in jenkins project, is there anyway I can include my own javascript files there with script src?
Found it finally :) You can add it to your project path
Add all your custom js here.
projectName\src\main\webapp\myCustom.js
on Jelly file I can access that by
<script src="${rootURL}/plugin/projectName/myCustom.js"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With