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

Unable to use Parameter filters in copy artifacts if parameter values contain commas

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have a project with a parameter whose value contains commas, it doesn't seem to be possible to specify the value of this parameter in the Parameter filters field of the copy artifact plugin.
      It would be nice if there was a way of escaping commas, e.g.:
      "A=a,B=b\,c,C=d" would evaluate to "A=a", "B=b,c" and "C=d"

        Attachments

          Activity

          Hide
          alanbirtles Alan Birtles added a comment -

          changing this regex
          https://github.com/jenkinsci/copyartifact-plugin/blob/master/src/main/java/hudson/plugins/copyartifact/ParametersBuildFilter.java#L48
          to
          "(.?)=((\".?\"(,|$))|(([^,]*)(,|$)))"
          would allow commas inside quoted values

          Show
          alanbirtles Alan Birtles added a comment - changing this regex https://github.com/jenkinsci/copyartifact-plugin/blob/master/src/main/java/hudson/plugins/copyartifact/ParametersBuildFilter.java#L48 to "(. ?)=((\". ?\"(,|$))|(( [^,] *)(,|$)))" would allow commas inside quoted values

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            alanbirtles Alan Birtles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: