Git VCS trigger for a specific directory

Hello, I'm using TeamCity 8.1.1.

I have a large Git repository with multiple projects underneath. I would like to trigger a VCS trigger when something changes in a specific branch in a specific directory.

  • Branch dev
    • Repo
      • Project 1
      • Project 2
      • Project 3
  • Branch staging
    • Repo
      • Project 1
      • Project 2
      • Project 3


So when I push a changes on branch dev in Project 2 I want TeamCity to trigger a build for that project.

I don't care if the build agent fetches the whole Git repository, I just want to trigger it specifically.

Is this possible?

4 comments
Comment actions Permalink

It is possible with VCS trigger. You can specify branch name (you can use wildcards here) and path.

0
Comment actions Permalink

How do I do that? You don't mention paths in your documentation. Or I can't see it.

0
Comment actions Permalink

I believe in your case it would be something like Project2/**. Please refer to documentation for complete manual: http://confluence.jetbrains.com/display/TCD8/Configuring+VCS+Triggers

0

Please sign in to leave a comment.