Configuring one build definition for all branches of a Git repository
The Git branching model and pull request workflow makes it so easy to manage the flow of code that you will get accustomed to creating a topic branch for each new item of work. Continuous Integration is table stakes for any organization looking to move into a DevOps way of working. Associating a Continuous Integration flow with every new Git topic branch you create can be cumbersome, as you'll need to create a new build definition for each Git branch.
This becomes an operational nightmare if the topic branches are short-lived. In this recipe, we'll learn how to use one build definition to build all your Git branches in a team project.
Getting ready
You need to be a member of the build administrator group in the team project. The build administrator group gives you permissions to administer build resources. Members can manage test environments, create test runs, and manage builds.
Create the following Git branches in your...