azureazure-devopsazure-pipelinesdevopsazure-pipelines-yaml

Azure Yaml Schema Batch Trigger


can anyone explain what Batch in Azure YAML Schema Trigger does?

The only explanation on MSFT website is

batch changes if true; start a new build for every push if false (default)

and this isn't really clear to me


Solution

  • Batch changes or Batch trigger actually means batching your CI runs.

    If you have many team members uploading changes often, you may want to reduce the number of runs you start. If you set batch to true, when a pipeline is running, the system waits until the run is completed, then starts another run with all changes that have not yet been built.

    To clarify this example, let us say that a push A to master caused the above pipeline to run. While that pipeline is running, additional pushes B and C occur into the repository. These updates do not start new independent runs immediately. But after the first run is completed, all pushes until that point of time are batched together and a new run is started.