"choice" parameter should take array for choices argument

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: core
    • None
    • Environment:
      pipeline:2.4
      pipeline-model-definition-plugin:0.8.1

      This is what I have to do now:

      pipeline {
          agent any
          parameters {
              choice(
                  // choices must be newline separated
                  choices: 'greeting\nsilence',
                  description: '',
                  name: 'REQUESTED_ACTION')
          }
      }
      

      This is what I should be able to do:

      pipeline {
          agent any
          parameters {
              choice(
                  choices: ['greeting','silence'],
                  description: '',
                  name: 'REQUESTED_ACTION')
          }
      }
      

            Assignee:
            Daniel Beck
            Reporter:
            Liam Newman
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: