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

No DataBoundConstructor Error when using ExtendedChoiceParameter with Workflow Plugin

    Details

    • Similar Issues:

      Description

      When trying to use an ExtendedChoiceParameter as parameter in an 'input' step for Workflow the following error is displayed:

      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition
      at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:177)
      at org.jenkinsci.plugins.workflow.structs.DescribableHelper.loadConstructorParamNames(DescribableHelper.java:273)
      at org.jenkinsci.plugins.workflow.structs.DescribableHelper.instantiate(DescribableHelper.java:89)
      at org.jenkinsci.plugins.workflow.structs.DescribableHelper.coerce(DescribableHelper.java:237)
      at org.jenkinsci.plugins.workflow.structs.DescribableHelper.mapList(DescribableHelper.java:264)

        Attachments

          Activity

          Hide
          issc29 Isaac Cohen added a comment -

          Example workflow code:

          def test = input message: 'Test', parameters: [[$class: 'ExtendedChoiceParameterDefinition',
          name: "Test Suites",
          type: "PT_CHECKBOX",
          value: "a,b,c,d",
          saveJSONParameterToFile:false,
          quoteValue:false,
          visibleItemCount:20,
          description:"test",
          multiSelectDelimiter:","]]

          Show
          issc29 Isaac Cohen added a comment - Example workflow code: def test = input message: 'Test', parameters: [[$class: 'ExtendedChoiceParameterDefinition', name: "Test Suites", type: "PT_CHECKBOX", value: "a,b,c,d", saveJSONParameterToFile:false, quoteValue:false, visibleItemCount:20, description:"test", multiSelectDelimiter:","]]
          Show
          issc29 Isaac Cohen added a comment - PR: https://github.com/jenkinsci/extended-choice-parameter-plugin/pull/19

            People

            • Assignee:
              vimil vimil
              Reporter:
              issc29 Isaac Cohen
            • Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: