How it works...

By implementing a build pipeline to your development process, you can have Azure DevOps automatically produce builds of your application any time that a developer commits changes to the repository.

Automating the build at the time the developer commits their changes is called Continuous Integration (CI). Aside from building the application at the time of commit, you would also typically execute any automated test scenarios that you have for the application. Implementing a CI process ensures that you are building and testing your application at all times, so as to ensure that no broken code gets into your application.

Azure build pipelines are defined using YAML, and are stored as physical files within the code repository. This means that you can maintain source code control on your build pipeline files alongside your application files. You can read more about YAML at https://yaml.org/spec/1.2/spec.html.

A build pipeline is structured like this:

The parts of this structure are explained as follows:

Once your build pipeline has been created, you can define triggers for the pipeline. The trigger is what tells the pipeline when to run. There are three types of triggers:

You can read more about build pipeline triggers at https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers?view=azure-devops&tabs=yaml.