Why is TeamCity commit showing in YouTrack from other branch?

I have a project Abc in YouTrack. It has a "Build Server Integration" to project Abc in TeamCity, pointing to the build configuration "Build", which build the MASTER branch only.

The TeamCity project Abc also has a build configuration "Build branches". It builds a specific set of other branches.

Lets say I commit to MASTER with message "#ABC-1 fixed". This appears perfectly in YouTrack.

However, when I then later cherry-pick the same commit to e.g. BRANCH-1, the same command is applied again and shown again in YouTrack.

I don't understand how this duplication happens, since my "Build Server Integration" points to a build configuration that doesn't run for that particular branch...?

 

Any help is greatly appreciated!

3 comments
Comment actions Permalink
Official comment

Hi!

I'm Sergey from the Youtrack team.

The commits are fetched from your VCS roots in Teamcity. So if the second commit appeared in Youtrack, then it was fetched per your VCS roots configuration in Teamcity. In other words, you link a Teamcity build configuration in Youtrack, this build configuration has some linked VCS roots. We fetch commits from these VCS roots. 

Hope this clarifies it. 

If you have any questions, please let me know. 

Comment actions Permalink

Thanks for the reply. This is kind of what I was expecting. In YouTrack I am linking a build configuration. It has a VCS root with the following setup:

 

 

How should this look to prevent pulling other branches? I thought blank would be enough here. Do I have to somehow DISABLE all non-master in the "Branch specification" field?

0
Comment actions Permalink

Thanks for your reply. 

I believe this Teamcity documentation should help you: Branch Filter

If any questions appear, please let me know. 

0

Please sign in to leave a comment.