...
The cache isn't just a bunch of files - it is versioned. This makes it easy for us to get the right version of the source to build. For example, lets say you have a Repository Trigger with a quiet period of 1 minute (that is, the build will wait 1 minute after its triggered to see if any other changes come in):
- new commit (Change1) is detected, which queues up a new build.
- just after the quiet period has ended, (and the build is just starting) a new change (Change2) is detected in your repository, which is automatically sync'd to all of the agents.
- now your build starts running on an agent
...