Ambuj Jauhari
Ambuj Jauhari

Reputation: 1289

cannot build pull requests with teamcity

I am using teamcity 9 and trying to integrate with github. I have followed the arcticle

https://blog.jetbrains.com/teamcity/2013/02/automatically-building-pull-requests-from-github-with-teamcity/

http://michaelsync.net/2014/04/05/teamcity-tip-building-all-pull-requests-and-updating-the-status-to-github

i have tried the various combinations

+:refs/pull/*/merge
+:refs/pull/(*/merge)

the default branch in master only

but whenever i click the 'run' button it always triggers the master build only. Can anyone please help on where am i going wrong ?

Upvotes: 2

Views: 651

Answers (1)

Matt
Matt

Reputation: 3704

When you click run in TeamCity, it will always build from the default branch.

The articles make no mention about Triggers. Provided you've got a trigger that is of the type VCS Trigger, then this should automatically build your pull requests.

Alternatively, you can manually trigger a build of the Pull Request using a custom run and choosing the build branch to be the PR required

enter image description here

Hope this helps

Upvotes: 2

Related Questions