I have a question about timing of chained builds, and how the source snapshots would be used in a particular situation.
Say I have 2 agents, and a chained build process made up of a container build (basically an empty ant task, takes <1 sec), which is dependent on:
- a unit test target,
- an integration test target.
The two testing builds can run parallel.
If I had 3 commits, as indicated below, which triggered the container build, and essentially results in this diagram:
Agent 1 (unit): |1-----||2-----||3-----|
Agent 2 (integ): |1----------||2----------|
Commit Triggers: 1^ 2^ 3^
...would the 3rd chained build make use of the 2nd integration build on agent 2? Assume that they all completed successfully.
At the point the second integration build runs, it already includes changes from the third commit, so it seems reasonable that teamcity wouldn't need to re-run the same build. Am I correct in my understanding?