-
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