If you're running the default command line git version on CentOS 7, it does not accept partial globs in the refspec. The command line git documentation for refspec says:
Since Git 2.6.0 you can use partial globs in the pattern to match multiple branches, so this works: fetch = +refs/heads/qa*:refs/remotes/origin/qa* If you're running a command line git version before 2.6.0, your partial glob won't work. On Wednesday, September 22, 2021 at 11:50:30 AM UTC-8 [email protected] wrote: > Hello, > > I wanted to trigger a Jenkins build when a new tag is created but I'm not > having any luck with it. > > Just to be sure I mentioned it, I don't have access to modify the repo > since it's a public repo. > > The following configuration is what I used in the "Git" Source Code > Management > Repo URL: https://github.com/apache/tomcat.git > Refspec: +refs/tags/8.5.*:refs/remotes/origin/tags/8.5.* > Branch Specifier: **/tags/** > Build Trigger: Poll SCM (with no schedule) > > Is there something I'm doing wrong? > > I can't do WebHooks which is unfortunate I think > > Any insights would be appreciated. > > [image: SCM.jpg] > > [image: Triggers.jpg] > > Thanks > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5e70f3cf-6ffd-4ba2-a6f0-4a83c217d7a1n%40googlegroups.com.
