-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins 2.462.3, 2.494
I had a perfectly working job (with AC version 2.8.3) that started acting up with:
groovy.lang.MissingPropertyException: No such property: BuildType for class: Script1
after upgrading AC to 2.8.4, and the issue still persists in 2.8.6. There seems to be some problem with transitive relations in the new version. My parameter references:
- 'ApplicationSelection'=>'ProjectSelection'=>'BuildType'
The exception is thrown at 'ApplicationSelection' as AC fails to transitively reference 'BuildType' which is properly defined and was working fine in the previous version.
'BuildType' is a top-level selector: a radio button intended to refresh two drop-down selection boxes: 'ProjectSelection' and 'ApplicationSelection':
- 'ProjectSelection' referenced parameter is 'BuildType'
- 'ApplicationSelection' referenced parameter is 'ProjectSelection'
The exception is thrown when opening the job in Jenkins web page (clicking 'Build with parameters', screenshot). Subsequent interaction with 'ProjectSelection' correctly updates 'ApplicationSelection', and interaction with top-level 'BuildType' correctly updates 'ProjectSelection' but not 'ApplicationSelection'. If I interact with 'BuildType', 'ApplicationSelection' seems to update according to the previous (stale) value of 'ProjectSelection', not the current (fresh) one. Adding 'BuildType' to 'ApplicationSelection' referenced parameters makes no difference,
Note: my Groovy scripts for AC parameters put exception text in the parameter value, that's why it can be seen on the screenshot.