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

Pipeline: Input Step Snippet Generator is incorrect for parameters:choices

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Latest Jenkins and all plugins

      The snippet generator suggests that the groovy code sohuld be:

      input message: '', parameters: [choice(choices: ['a', 'b', 'c', 'd'], description: 'whichletter', name: 'abcd')]

      However, I found that choices: expects a string, not an array.

      I think that instead of

            choices: ['a','b','c','d']

      the snippet generator should instead suggest 

           choices: 'a\nb\nc\nd'

       

      Thanks for your attention to this issue.

            Unassigned Unassigned
            bobvdk Robert Van der Kloot
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: