Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-74931

JellyTagException, when using active-choice-plugin with scriptler

XMLWordPrintable

      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.

            mtughan Michael Tughan
            volkher Volkher
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: