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

JellyTagException, when using active-choice-plugin with scriptler

      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.

          [JENKINS-74931] JellyTagException, when using active-choice-plugin with scriptler

          Tobias added a comment -

          Same here... needet to rollback to version 376.v152edd95b_ca_f

           

          Tobias added a comment - Same here... needet to rollback to version 376.v152edd95b_ca_f  

          Thanks for reporting this volkher and meyestro. This was caused by some refactoring in the Scriptler plugin. I will work to release a new version that fixes this ASAP.

          Michael Tughan added a comment - Thanks for reporting this volkher and meyestro . This was caused by some refactoring in the Scriptler plugin. I will work to release a new version that fixes this ASAP.

          This is now resolved in release 391.v88a_89196d4f7 (which is also backported to the release series compatible with Jenkins 2.479.1 as 384.386.v24ff60c5254e).

          Michael Tughan added a comment - This is now resolved in release 391.v88a_89196d4f7 (which is also backported to the release series compatible with Jenkins 2.479.1 as 384.386.v24ff60c5254e ).

          hanks mtughan !

          Bruno P. Kinoshita added a comment - hanks mtughan !

          Volkher added a comment -

          describe the same fixed bug

          Volkher added a comment - describe the same fixed bug

          Volkher added a comment -

          Thanks for fixing mtughan 

          Volkher added a comment - Thanks for fixing mtughan  

          Volkher added a comment -

          Bug is fixed

          Volkher added a comment - Bug is fixed

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

              Created:
              Updated:
              Resolved: