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.
The resulting build summary provides all the commits that were batched into the build.
Enabling build batching in your .vsts-ci.yaml file:
https://docs.microsochft.com/en-us/azure/devops/pipelines/build/triggers?view=vsts&tabs=yaml
Happy (faster) Building!
Does this work on a hosted agent pool?
Yes, as far as I know it should.
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?
It should be at the top of the yaml file. If you don’t have a trigger section you can add it. See screenshot in post above.
Thank you for sharing the opinion about dot net application development. It is very useful.