Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Teamcity: trigger a build on a Tag with wildcard

Tags:

git

teamcity

I'm a Teamcity newbe :) But I'm very well on the way.

I know that it is possible to trigger on Tags like this: +:refs/tags/(*)

Now my question is, is it possible to trigger on special Tags with wildcard? Like this: +:refs/tags/test_*. whenever a tag for example a tag "test_101" is pushed on Git that a build will start?

Furthermore, I read that with VCS rules it is possible to trigger on VCS comments. But I can't find anything about a "comment" What is mentioned with comment?

I hope I described my request understanble because I'm not a native speaker.

Thanks in advance and cheers

like image 584
kevdiablo Avatar asked Dec 07 '25 08:12

kevdiablo


1 Answers

Once you have "+:refs/tags/(*)" in the TeamCity Git VCS root, this makes the tags display as branches in TeamCity UI.

Then you can add +:test_* in the VCS trigger branch filter to make the tags trigger a new build.

VCS trigger also provides ability to trigger only on some commits matching commit comments. Details.

like image 61
Yaegor Avatar answered Dec 09 '25 21:12

Yaegor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!