-
Task
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.32.2, Active Choices 1.5.2, Chrome v. 56
Using an Active Choices Reactive Reference Parameter and having it return Formatted HTML with a script portion (onchange, etc...) works great unless the groovy script references other dependent build parameters such as strings, Active Choice parameters, etc... The returned HTML renders properly, just without the script. Attached is a (hopefully) very simple job configuration to demonstrate.
The groovy script for generating the sample test is as follows (DummyVar is a string parameter defined just above this parameter):
//Uncomment this line, causing DummyVar to be referenced, and the script will be lost at runtime. //def a = DummyVar def FullHTML = "" FullHTML += "<head>" FullHTML += "<script type='text/javascript'> jQuery(document).on('ready', function() { function updateOutputValue() { jQuery('#value').val('Booya!'); };" FullHTML += " updateOutputValue();" FullHTML += "});" FullHTML += "</script>" FullHTML += "</head>" FullHTML += "<body><form><input id='value' name='value' > </form></body>" return FullHTML
- is related to
-
JENKINS-45507 Evaluate parameters once
-
- Open
-
Not sure what the issue is about exactly. Had a quick look at the issue, but didn't have enough time to read all the comments.
If someone could summarize the issue, maybe I can help? We have 4 small/medium issues fixed already, besides the security issue in Scriptler that is blocking our release.
In the meantime I think we can squeeze a few more issues likes this for the next release