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
-
Repo
- Branch staging
- Repo
- Project 1
- Project 2
- Project 3
- Repo
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?
Please sign in to leave a comment.
It is possible with VCS trigger. You can specify branch name (you can use wildcards here) and path.
How do I do that? You don't mention paths in your documentation. Or I can't see it.
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
Thank you.