I'm trying to set up so that TeamCity will run a set of tests based on a VCS trigger if a user checks in to /folderA/ or /folderB/:
if the user checks in to /folderA/, I want to use an artifact from the same chain
If the user checks in to /folderB/, I want to use last successful.
Easy enough so far to implement by just having 2 copies of the test job with different dependencies and triggers. The difficulty comes here:
If the user checks in to /folderA/ and /folderB/, then I only want to run the tests using the artifact from the same chain, I don't want to trigger both sets of tests, because it will be doing the same thing, wasting valuable time on the agents.
Does anyone know how I could go about setting this up?