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

No DataBoundConstructor Error when using ExtendedChoiceParameter with Workflow Plugin

    XMLWordPrintable

Details

    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

          issc29 Isaac Cohen created issue -
          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:","]]

          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:","]]
          issc29 Isaac Cohen added a comment - PR: https://github.com/jenkinsci/extended-choice-parameter-plugin/pull/19
          jglick Jesse Glick made changes -
          Field Original Value New Value
          Epic Link JENKINS-35393 [ 171186 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 167763 ] JNJira + In-Review [ 182834 ]
          abayer Andrew Bayer made changes -
          Labels workflow pipeline workflow
          abayer Andrew Bayer made changes -
          Labels pipeline workflow pipeline

          People

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

            Dates

              Created:
              Updated: