Reputation: 3685
What needs to be configured in TeamCity 7.1 that it triggers a build only when a commit happens to a master branch in git?
Currently, it triggers when changes to other (feature) branches are pushed to the remote repository.
Upvotes: 4
Views: 1686
Reputation: 3685
Huh, seems like we had a service hook attached to TeamCity at GitHub, it was triggering those builds.
After turning off Github hook, build now it works as expected, builds only when pushed to master.
(Alternatively, hook can be configured to filter by branches)
Upvotes: 4