We have multiple projects that share a common git repo. The repo has a folder structure setup something like this:
So the two projects share a lot of code via Commons. However they each have their own dedicated builds. We want project2 to build anytime code in either folder Project2 or Commons is committed, but it should not build if commits only affect the Project1 folder.
And in particular, we don't want commits that only affect files under Project1 to show up in the pending changes of Project2.
How can we accomplish this with TeamCity?