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

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

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              Created:
              Updated: