Best practices
The importance of following best practices becomes evident when you encounter issues during a pipeline’s life cycle. They will enable your team to not only maintain pipelines with ease but also swiftly identify and address any problems that may arise.
Here are some practices that will help your team find any issues easily:
- Use YAML syntax rather than the classic version. YAML can be version-controlled in repositories such as Azure Repos, GitHub, and Bitbucket, which can help you track changes in the YAML file and introduce changes gradually when combined with a branching strategy. Even better, if you want to enforce this, you can disable the creation of classic build pipelines at the organization or project settings level.
- Separate common tasks into separate YAML files that can be referenced from your main template when you have many tasks repeated throughout stages. This makes it easier to maintain or change the behavior of a pipeline in large...