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

Multiple filters for tags

XMLWordPrintable

      Tag filter does not allow specifying multiple refspec filters like:

      *-dev* *-pre* *-a* *-b*
      

      and because of applied escaping. The parameter config value is passed escaped creating single string. git ls-remote allows specifying multiple filters so at least docs are misleading but to me this is severely limited functionality.

      Example:

      $ git ls-remote -t "<mygitrepo>" *-dev* *-pre*
      357497547aafc4aaac1d13675423aa3d9c03213f	refs/tags/1.0.1-dev
      1ae70e4932f870330113cf42aaf566d3a6faec1c	refs/tags/1.0.1-pre
      b619fe2c14a0e55f25ef271fb3b3fc888e555cfe	refs/tags/1.0.2-dev
      1199c81febc113cf2c520e4a5191c61bb2368476	refs/tags/1.0.2-devv
      7189f610cb7ba78e490d6af32cc59c4aad92df03	refs/tags/1.0.2-pree
      2f44488a83e85849a0a7a6e9b65013e2f91e6d13	refs/tags/2.1.0-development
      $
      

      vs.

      $ git ls-remote -t "<mygitrepo>" "*-dev* *-pre*"
      $
      

            klimas7 Boguslaw Klimas
            zgoda_crus Jarek Zgoda
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: