Limit builds running on later stages

Nov 11, 2013 at 12:43 PM
Assume you have a pipeline consisting of multiple stages. First stage is the commit stage and e.g. second state is the acceptance stage. Both stages are implemented as TFS builds.

Usually I like to get fast feedback in the commit stage, therefore I run slow tests within the acceptance stage. This means that the commit stage has a smaller cycle time than the acceptance stage.

Each build within the commit stage queues a build within the acceptance stage.

If I assume constant inflow then my builds within the acceptance stage would quickly increase the queue length. The queue would increase and increase...

How to achieve something like a rolling build which accumulates changes within the acceptance stage?