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

FATAL: Illegal choice: incremental caused by Parameterized Trigger Plugin 2.23 - offending parameter not identified

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      As requested by:
      ikedam added a comment - 20/Mar/14 2:04 PM
      @bedge
      Would you create a new issue and link to this issue?

      Can the exception be improved to show what the offending parameter is?

      I'm seeing no information on what caused the problem:

      FATAL: Illegal choice:
      java.lang.IllegalArgumentException: Illegal choice:
      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:67)
      at hudson.plugins.parameterizedtrigger.ProjectSpecificParameterValuesActionTransform.transformParametersAction(ProjectSpecificParameterValuesActionTransform.java:32)
      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)

        Attachments

          Activity

          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/parameterized-trigger-plugin/pull/67
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/ProjectSpecificParameterValuesActionTransform.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/5ce65dea3988d5d10b9bf7f28632784fd2ff6ecb
          Log:
          [FIXED JENKINS-22281] Output more informative logs when failing converting parameter values in compatibility mode.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/parameterizedtrigger/ProjectSpecificParameterValuesActionTransform.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/5ce65dea3988d5d10b9bf7f28632784fd2ff6ecb Log: [FIXED JENKINS-22281] Output more informative logs when failing converting parameter values in compatibility mode.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/parameterizedtrigger/ProjectSpecificParameterValuesActionTransform.java
          http://jenkins-ci.org/commit/parameterized-trigger-plugin/2109f295054aa752c8750ad2f8441c424bc0b62d
          Log:
          Merge pull request #67 from ikedam/feature/JENKINS-22281_InformativeLogInParameterConversionFailure

          JENKINS-22281 Output more informative logs when value converting failure.

          Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/a8f32fc34ab0...2109f295054a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/parameterizedtrigger/ProjectSpecificParameterValuesActionTransform.java http://jenkins-ci.org/commit/parameterized-trigger-plugin/2109f295054aa752c8750ad2f8441c424bc0b62d Log: Merge pull request #67 from ikedam/feature/ JENKINS-22281 _InformativeLogInParameterConversionFailure JENKINS-22281 Output more informative logs when value converting failure. Compare: https://github.com/jenkinsci/parameterized-trigger-plugin/compare/a8f32fc34ab0...2109f295054a
          Hide
          ikedam ikedam added a comment -

          Release fix in 2.25.
          It will be available in a day.
          Please try that.

          Now prints a message like this:

          WARNING: Ignoring RuntimeException thrown while converting StringParameterValue param1 on upstream #1. Falling back to original value.

          Show
          ikedam ikedam added a comment - Release fix in 2.25. It will be available in a day. Please try that. Now prints a message like this: WARNING: Ignoring RuntimeException thrown while converting StringParameterValue param1 on upstream #1. Falling back to original value.

            People

            • Assignee:
              huybrechts huybrechts
              Reporter:
              bedge Bruce Edge
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: