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

Make extended-choice-parameter-plugin pipeline compatibility easier

    Details

    • Similar Issues:

      Description

      https://github.com/jenkinsci/extended-choice-parameter-plugin/blob/master/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java#L427

      should implement @DataboundConstructor to support snippet generator. Or a new constructor should be supplied allowing for some sensible defaults. Just an idea.

      Usage with pipeline is currently possible but not very practical. The number of parameters required for the current constructor is pretty huge.

        Attachments

          Issue Links

            Activity

            Hide
            owood Owen Wood added a comment -

            Mike Kobit honestly cant remember exactly what the issue was. It was May last year when I looked at this. 

             

            My recommendation is to look at the code.

            Show
            owood Owen Wood added a comment - Mike Kobit honestly cant remember exactly what the issue was. It was May last year when I looked at this.    My recommendation is to look at the code.
            Hide
            jgraglia Julien Graglia added a comment -

            FYI here is a snippet of how to declare a parameter in a Jenkinsfile by manually instanciating a ` com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition`

            https://gist.github.com/jgraglia/44a7443847cff6f0d87387a46c7bb82f

            Show
            jgraglia Julien Graglia added a comment - FYI here is a snippet of how to declare a parameter in a Jenkinsfile by manually instanciating a ` com.cwctravel.hudson.plugins.extended_choice_parameter.ExtendedChoiceParameterDefinition` https://gist.github.com/jgraglia/44a7443847cff6f0d87387a46c7bb82f
            Hide
            aarondmarasco_vsi Aaron D. Marasco added a comment -

            Sakti, I was able to use Julien's less-than-pretty example. You can feed "test" right into input(). Out came a comma-separated list exactly as I needed. My users can now delete dead Docker containers.

            Show
            aarondmarasco_vsi Aaron D. Marasco added a comment - Sakti, I was able to use Julien's less-than-pretty example. You can feed " test " right into input() . Out came a comma-separated list exactly as I needed. My users can now delete dead Docker containers.
            Hide
            swf Yves Schumann added a comment -

            Any progress here? The plugin is very important as we use it to reference generated properties files to select build parameters!

            Show
            swf Yves Schumann added a comment - Any progress here? The plugin is very important as we use it to reference generated properties files to select build parameters!
            Hide
            rodrigc Craig Rodrigues added a comment - - edited

            I have a patch which allows you to specify **extendedChoice in the parameters block of a declarative pipeline.

            https://github.com/jenkinsci/extended-choice-parameter-plugin/pull/25

            Show
            rodrigc Craig Rodrigues added a comment - - edited I have a patch which allows you to specify ** extendedChoice in the parameters block of a declarative pipeline. https://github.com/jenkinsci/extended-choice-parameter-plugin/pull/25

              People

              • Assignee:
                vimil vimil
                Reporter:
                owood Owen Wood
              • Votes:
                15 Vote for this issue
                Watchers:
                22 Start watching this issue

                Dates

                • Created:
                  Updated: