I have a rule in Build Triggers to not trigger a build if a commit happens on a directory:
Here is the directory structure of our code
web => Web Application code. Should trigger Build1
api => Backend Code. Should trigger Build2
When a git commit happens on web files, I just want to trigger Build1 and not Build2. So, I have the trigger rules setup this way:
+:.
-:api/**
This worked for couple hours, but I started seeing both builds getting triggered when api files are checked in and vice versa.
I have also tried the following configurations and nothing seem to work.
Config2:
-:api/**
Config3:
+:web/**
Config4:
-:**
+:web/**
Config5:
-:.
+:web/**
Whats the right build trigger config for my usecase?
This happens both on Teamcity 8 and 9