I have a TeamCity project with the following build configurations:
- Gather dependencies (expensive)
- Build
- Test
- Deploy
Say I know whether I need to do it by changes to some file deps.txt
.
Here's what I want to do:
- I want to trigger builds on all changes in version control.
- If
deps.txt
has changed, I want to run builds 1, then 2, then 3, then 4. - If
deps.txt
has not changed, I want to run builds 2 then 3 then 4.
I tried putting triggers on build configurations like this:
- VCS trigger on no checkins, unless
+:deps.txt
- VCS tigger on all checkins, unless
-:deps.txt
- Snapshot dependency on 2, trigger when 2 finishes building
- Snapshot dependency on 3, trigger when 3 finishes building
but if a commit includes changes deps.txt and other files, then configurations 1 and 2 trigger at the same time, meaning that configuration 2 will fail.
Is there an easy way to do this in TeamCity?