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

Support custom delimiters for multiselection parameters

    XMLWordPrintable

Details

    Description

      The character used to delimit selected values both in multi selection and check boxes choice type is comma (',').

      If any selected value contains any comma there's no way to tokenize selected values properly.

      Adding and advanced option to define the values separator for multiselection choice it should be useful in this case.

      Extended Choice Parameter plugin has a delimiter configuration implemented: see JENKINS-17518

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          57 kB
        2. screenshot-2.png
          screenshot-2.png
          41 kB
        3. screenshot-3.png
          screenshot-3.png
          46 kB

        Activity

          Hi jmcubel, could you provide a bit more information so that I can properly understand the problem, please?

          Just a sample script + configuration, as in JENKINS-38532

          Thanks!

          kinow Bruno P. Kinoshita added a comment - Hi jmcubel , could you provide a bit more information so that I can properly understand the problem, please? Just a sample script + configuration, as in JENKINS-38532 Thanks!

          Hi jmcubel

          Attaching examples using comma in the parameter values. I managed to successfully reference the parameter, retrieve the value (with commas), split it by comma, and use the parts to build other values. Not sure how to reproduce it.

          Feel free to reopen if you think the issue is still valid. Try to provide steps to reproduce and, if possible, a use case for this change.

          Thanks!
          Bruno

          kinow Bruno P. Kinoshita added a comment - Hi jmcubel Attaching examples using comma in the parameter values. I managed to successfully reference the parameter, retrieve the value (with commas), split it by comma, and use the parts to build other values. Not sure how to reproduce it. Feel free to reopen if you think the issue is still valid. Try to provide steps to reproduce and, if possible, a use case for this change. Thanks! Bruno

          (Note in screenshots that the `, estado` part is removed with Groovy)

          kinow Bruno P. Kinoshita added a comment - (Note in screenshots that the `, estado` part is removed with Groovy)

          People

            kinow Bruno P. Kinoshita
            jmcubel Jose Maria Cubel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: