In the official documentation I found how to trigger a new build via API and specify comment, properties but not a branch name in TeamCity. The idea is to trigger a new build from GitLab for a tag branch when the merge request was tagged with a version (I use tags as branches in the configuration). In TeamCity, I added exclusion rule to branch specification (-:refs/merge-requests/*) as I do not want to build every merge request, as we usually have them a lot for other branches as well. This rule also applied to the merge request that was made recently to master and tagged. As a result, I do not have builds for tagged merge requests.
I want to trigger a new build from GitLab (add a webhook when new tag is detected), but do not know whether it is possible to specify what branch to use?
Thank you.