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

Pipeline Input multiselect feature is broken

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins ver. 2.60.1

      Extensible Choice Parameter Plugin : 1.4.0 (archives)
    • Similar Issues:

      Description

      The pipline DSL documentation explaines that an multiple choice dialog can be used with the input command. The documentation however is not very detailed. I had to read the code of the extendedchoiceparaemter to circumvent some problems (e.g. when the muliSelectDimiter parameter is missing the plugin throws a null pointer exception. )

      Im, however, stuck now with an interface problem it seems. Please see attached console output. Assumption:  It is tried to invoke a method of the plugin which doesnt have the expected signature anymore.

       

      stage('file input') {
          node {
              
              script {
              def userInput = input  message: 'Let\'s promote?', ok: 'Release!',
       parameters:  [$class: 'com.moded.extendedchoiceparameter.ExtendedChoiceParameterDefinition',name:"test",  multiSelectDelimiter: ",",
       type: 'PT_MULTI_SELECT',value: "first,second,third"]
      echo "userInput"
      }
          
      }
      

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          Looks an issue not of extensible-choice, but extended-choice-parameter.
          Changed component/s.

          Show
          ikedam ikedam added a comment - Looks an issue not of extensible-choice, but extended-choice-parameter. Changed component/s.

            People

            • Assignee:
              vimil vimil
              Reporter:
              marcbalta Marc Balta
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: