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

FATAL: Illegal choice: incremental caused by Parameterized Trigger Plugin 2.23

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      After I upgraded the Parameterized Trigger Plugin from 2.22 to 2.23, I had a number of jobs that failed immediately with

      FATAL: Illegal choice: incremental
      java.lang.IllegalArgumentException: Illegal choice: incremental
      	at hudson.model.ChoiceParameterDefinition.checkValue(ChoiceParameterDefinition.java:75)
      	at hudson.model.ChoiceParameterDefinition.createValue(ChoiceParameterDefinition.java:87)
      	at hudson.model.ChoiceParameterDefinition.createValue(ChoiceParameterDefinition.java:19)
      	at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.convertToDefinedType(ProjectSpecificParameterValuesActionTransform.java:62)
      	at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.transformParametersAction(ProjectSpecificParameterValuesActionTransform.java:28)
      	at hudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.getProjectSpecificBuildActions(ProjectSpecificParametersActionFactory.java:32)
      	at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBuildActions(BuildTriggerConfig.java:290)
      	at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:336)
      	at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57)
      	at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
      	at hudson.model.Build$BuildExecution.build(Build.java:199)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
      	at hudson.model.Run.execute(Run.java:1676)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      
      

      Downgrading the Parameterized Trigger Plugin back to 2.22 fixed the problem.

      All the failing jobs have build steps of type Trigger/call builds on other projects.

        Attachments

          Issue Links

            Activity

            Hide
            ikedam ikedam added a comment -

            Fixed in 2.24.

            Show
            ikedam ikedam added a comment - Fixed in 2.24.
            Hide
            vikulin Vadym Vikulin added a comment -

            Still reproduces on 2.25:

            FATAL: Illegal choice: release_2.8
            java.lang.IllegalArgumentException: Illegal choice: release_2.8
            at hudson.model.ChoiceParameterDefinition.checkValue(ChoiceParameterDefinition.java:75)
            at hudson.model.ChoiceParameterDefinition.createValue(ChoiceParameterDefinition.java:87)
            at hudson.model.ChoiceParameterDefinition.createValue(ChoiceParameterDefinition.java:19)
            at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.convertToDefinedType(ProjectSpecificParameterValuesActionTransform.java:83)
            at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.transformParametersAction(ProjectSpecificParameterValuesActionTransform.java:34)
            at hudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.getProjectSpecificBuildActions(ProjectSpecificParametersActionFactory.java:32)
            at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBuildActions(BuildTriggerConfig.java:290)
            at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:336)
            at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57)
            at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85)
            at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
            at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
            at hudson.model.Build$BuildExecution.build(Build.java:199)
            at hudson.model.Build$BuildExecution.doRun(Build.java:160)
            at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
            at hudson.model.Run.execute(Run.java:1732)
            at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
            at hudson.model.ResourceController.execute(ResourceController.java:88)
            at hudson.model.Executor.run(Executor.java:234)

            Show
            vikulin Vadym Vikulin added a comment - Still reproduces on 2.25: FATAL: Illegal choice: release_2.8 java.lang.IllegalArgumentException: Illegal choice: release_2.8 at hudson.model.ChoiceParameterDefinition.checkValue(ChoiceParameterDefinition.java:75) at hudson.model.ChoiceParameterDefinition.createValue(ChoiceParameterDefinition.java:87) at hudson.model.ChoiceParameterDefinition.createValue(ChoiceParameterDefinition.java:19) at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.convertToDefinedType(ProjectSpecificParameterValuesActionTransform.java:83) at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.transformParametersAction(ProjectSpecificParameterValuesActionTransform.java:34) at hudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.getProjectSpecificBuildActions(ProjectSpecificParametersActionFactory.java:32) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBuildActions(BuildTriggerConfig.java:290) at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform2(BuildTriggerConfig.java:336) at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform2(BlockableBuildTriggerConfig.java:57) at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:85) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234)
            Hide
            mwebber Matthew Webber added a comment -

            @vikulin:
            Are you running with

            -Dhudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.compatibility_mode=true

            as described above?

            Show
            mwebber Matthew Webber added a comment - @vikulin: Are you running with -Dhudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.compatibility_mode=true as described above?
            Hide
            dmaslakov Dmitry Maslakov added a comment -

            I used

            -Dhudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.compatibility_mode=true

            with Jenkins 1.578 and plug-in of version 2.25, it works.

            But pay attention that you have manually restart Jenkins on the host, because restarting from UI will restart with old Java options so that added -D option will not appear.

            Show
            dmaslakov Dmitry Maslakov added a comment - I used -Dhudson.plugins.parameterizedtrigger.ProjectSpecificParametersActionFactory.compatibility_mode=true with Jenkins 1.578 and plug-in of version 2.25, it works. But pay attention that you have manually restart Jenkins on the host, because restarting from UI will restart with old Java options so that added -D option will not appear.
            Hide
            ikedam ikedam added a comment -

            No details.
            Looks an invalid reopen.

            Show
            ikedam ikedam added a comment - No details. Looks an invalid reopen.

              People

              • Assignee:
                huybrechts huybrechts
                Reporter:
                mwebber Matthew Webber
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: