[JIRA] (JENKINS-58317) Multiple filters for tags

4 views
Skip to first unread message

jarek.zgoda@cirrus.com (JIRA)

unread,
Jul 3, 2019, 6:24:02 AM7/3/19
to jenkinsc...@googlegroups.com
Jarek Zgoda created an issue
 
Jenkins / Bug JENKINS-58317
Multiple filters for tags
Issue Type: Bug Bug
Assignee: Boguslaw Klimas
Components: git-parameter-plugin
Created: 2019-07-03 10:23
Priority: Major Major
Reporter: Jarek Zgoda

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jarek.zgoda@cirrus.com (JIRA)

unread,
Jul 3, 2019, 6:31:02 AM7/3/19
to jenkinsc...@googlegroups.com
Jarek Zgoda updated an issue
Change By: Jarek Zgoda
Tag filter does not allow specifying multiple refspec filters like:

{noformat}
*-dev* *-pre* *-a* *-b*
{noformat}


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:

{noformat}
$ 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
$
{noformat}

vs.

{noformat}
$ git ls-remote -t "<mygitrepo>" "*-dev* *-pre*"
$
{noformat}
Reply all
Reply to author
Forward
0 new messages