Azure Pipelines (VSTS) Quick Tip – CI Trigger Build Batching

If you are building code in Azure Pipelines and often find yourself waiting for queued builds.  You may find it useful to enable build batching.  Build batching will take multiple commits and build them all at once in one batch instead of queuing each commit as a separate build which would extend the total time to build.   

Batching supports and handles segregating commits by branch as well.   Notice here how the builds are segregated by branch.

image

image

The resulting build summary provides all the commits that were batched into the build.

image

Enabling build batching in your .vsts-ci.yaml file:

image

https://docs.microsochft.com/en-us/azure/devops/pipelines/build/triggers?view=vsts&tabs=yaml

Happy (faster) Building!

5 thoughts on “Azure Pipelines (VSTS) Quick Tip – CI Trigger Build Batching”

      1. Ok, when I look at the build pipeline’s YAML file, i see my tasks, resources, pool, etc. Can you please point me where to add this?

Leave a Reply