zappan
zappan

Reputation: 3685

How to trigger a build only on changes in git master branch?

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

Answers (1)

zappan
zappan

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

Related Questions