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

Support ant globs for including/excluding branches

      For usability of include/exclude patterns for branch names in multi-branch pipelines we would like to use ant globs.

      You should be able to specify multiple ant globs if the patterns are comma separated.

      This is in support of the Blue Ocean story JENKINS-35790.

          [JENKINS-35992] Support ant globs for including/excluding branches

          Michael Neale added a comment -

          as I understand it the current matching is regex based.

          Ant globs: https://confluence.atlassian.com/display/FISHEYE015/5.+Antglob+Reference+Guide (I haven't heard them called that myself, but it is what atlassian calls them).

          I believe a translation from globs -> regex should be possible (and possibly not needed in those plugins, where it would be repeated).

          Michael Neale added a comment - as I understand it the current matching is regex based. Ant globs: https://confluence.atlassian.com/display/FISHEYE015/5.+Antglob+Reference+Guide (I haven't heard them called that myself, but it is what atlassian calls them). I believe a translation from globs -> regex should be possible (and possibly not needed in those plugins, where it would be repeated).

          Jesse Glick added a comment -

          Globs could be converted to run regexps but not generally vice-versa.

          Note that some fields in `git`, thus also in `github-branch-source`, use a special limited glob implementation, not standard shell globs. It is all over the map. Some UI guidance would be appreciated.

          BTW Ant patternsets (the proper name) are significantly stronger than globs (but of course still much weaker than regexps). I cannot think of any place where there are used in multibranch config.

          Jesse Glick added a comment - Globs could be converted to run regexps but not generally vice-versa. Note that some fields in `git`, thus also in `github-branch-source`, use a special limited glob implementation, not standard shell globs. It is all over the map. Some UI guidance would be appreciated. BTW Ant patternsets (the proper name) are significantly stronger than globs (but of course still much weaker than regexps). I cannot think of any place where there are used in multibranch config.

            amuniz Antonio Muñiz
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: