Marko
Marko

Reputation: 5552

TeamCity trunk build is triggered by commit in a branch

I have a TeamCity setup with two projects building different svn branches from the same repository. First project is for the trunk (stable), and other is for my development branch. Whenever I commit something to my branch, trunk build is triggered.

Is that normal and can it be avoided?

I'm using TeamCity 6.0.

Upvotes: 0

Views: 1003

Answers (2)

bitsmuggler
bitsmuggler

Reputation: 1729

You can specify your trigger, e.g. the trigger pattern! Or you can write a custom build trigger :-).

Pattern for the trigger pattern :

+|-:[user][VCS root][path] 

Upvotes: 0

KIR
KIR

Reputation: 5692

Marco, are you absolutely sure that your VCS settings for the trunk project do not include sources from the branch?

You configuration should be something like:

svn://server/root (VCS root)

trunk => . (checkout rules for trunk build) branch/dev => . (checkout rules for branch build)

In this case, everything should work as expected.

Another thing - if your trunk and branch reference the same SVN external, and there is a change in this external, both builds will be triggered.

Upvotes: 2

Related Questions