Issue excluding a VCS Root from VCS Build Trigger

I have a Build Configuration with two VCS Roots attached (both are TFS). I also have a VCS Build Trigger set up for this Build Configuration.

What I'm trying to do is to have TeamCity trigger a build for VCS Root 1, but not for VCS Root 2. I have the following rules on my VCS Build Trigger:

-:root=VCS Root 2:**/*

This rule was added via the Add new rule button, so I assume the Syntax is correct (and looking at the documentation, it appears correct). However, when I commit something to the folder being monitored by VCS Root 2, I still end up with a Build in the Queue for this project.

Am I missing something with the rule, or am I misunderstanding what the exclude rule is suppose to do (i.e. if a commit is detected from that VCS Root, do not put a build in the queue)?

Thanks,
~Alex

P.S. It should be noted that I am using TeamCity version 7.0.4

2 comments
Comment actions Permalink

Please try to simplify to this:
-:root=VCS Root 2:**

0
Comment actions Permalink

This appears to have worked.

After making the change, I committed files that would be detected by that root. I waited for it to show as Pending, and then I committed files to a different VCS root in a different Build Configuration. The second Build Configuration added a build to the queue and the first one still had not (which was the desired result).

Thanks,
~Alex

0

Please sign in to leave a comment.