2
votes

I configured Teamcity job to be triggered by pull requests (pull request is created or updated). In VCS root default branch:

refs/heads/master

Branch specification:

-:refs/heads/master
+:refs/pull/(*/merge)

All our release branches have name started with release-, for example release-1.0.0.

How to configure teamcity job to be triggered only by pull requests to any release branch? There is pull request filtering by target branch, however it does not support asterisks in name of branch.

1
Are you talking about triggers?Joakim Skoog
Yes, talking about job triggersAnton
I might be mistaken here or we're referring to different things but you can create a VCS Trigger and then use the following branch filter: +:release-*Joakim Skoog
I want to analyse pull request, not result of merge to release branch. Git for pull requests creates /pull/ID branchAnton

1 Answers

0
votes

Due to answer posted by Anton Arhipov here it's not possible now:

Hi! Currently, the target branch must be a full name. No regex definitions supported yet