-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins Version 2.486 on SLES 15.6 and Version 2.479.2 on OpenSuse Leap 15.6
Java openjdk version "17.0.13" 2024-10-15
Active Choices Plugin Version 2.8.6
Scriptler Version 384.v5d0d63f4a_51e
description
After the upgrade from Jenkins version 2.462 with Java 11 to the current version with Java 17 the Active Choices Plugin using groovy scripts stored with the Scriptler plugin doesn't work anymore and throws an exception:
Nov. 28, 2024 7:30:12 AM WARNUNG hudson.init.impl.InstallUncaughtExceptionHandler handleException
{{Caught unhandled exception with ID d49cc34c-db33-4022-b010-d731e0aee617 org.apache.commons.jelly.JellyTagException: jar:file:/var/lib/jenkins/plugins/uno-choice/WEB-INF/lib/uno-choice.jar!/org/biouno/unochoice/common/selectContent.jelly:3:52: <j:forEach> Class org.jenkinsci.plugins.scriptler.config.Script does not have member field 'java.lang.String script' }}
Reproduction
Store a simple groovy script in scriptler.
return ["a", "b" , "c"]
Create a project with parameter Active Choices Parameter.
If the script is stored directly as groovy script and you click build project it works without errors.
If you choose the scriptler option in the configuration, build project fails with the exception.
- duplicates
-
JENKINS-74914 Since version 2.8.3 using Scriptler script is no longer working
-
- Resolved
-
Same here... needet to rollback to version 376.v152edd95b_ca_f