Book Image

Microsoft Team Foundation Server 2015 Cookbook

By : Tarun Arora
Book Image

Microsoft Team Foundation Server 2015 Cookbook

By: Tarun Arora

Overview of this book

Team Foundation Server (TFS) allows you to manage code repositories, build processes, test infrastructure, and deploy labs. TFS supports your team, enabling you to connect, collaborate, and deliver on time. Microsoft's approach to Application Lifecycle Management (ALM) provides a flexible and agile environment that adapts to the needs of your team, removes barriers between roles, and streamlines processes. The book introduces you to creating and setting up team projects for scrum teams. You'll explore various source control repositories, branching, and merging activities, along with a demonstration of how to embed quality into every code check-in. Then, you'll discover agile project planning and management tools. Later, emphasis is given to the testing and release management features of TFS which facilitate the automation of the release pipeline in order to create potentially shippable increments. By the end of the book, you'll have learned to extend and customize TFS plugins to incorporate them into other platforms and enable teams to manage the software lifecycle effectively.
Table of Contents (16 chapters)
Microsoft Team Foundation Server 2015 Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Setting up policies for branches in Git


Building on the theme of code quality and how it helps prevent technical debt, branch policies is a great new feature in TFS that lends itself to improving the quality of the code that goes into the Git repo. In this recipe, you'll learn how to configure code review and Gated check-in policy on the master branch.

Getting ready

To configure branch policies on a branch, the user needs to have administration permission for that branch. To apply branch policy for the entire repo, the user needs admin rights for the repo.

Create a continuous integration build for the FabrikamGit Team; follow the instructions in the Creating a continuous integration build definition in TFBuild recipe in Chapter 4, Building Your Application.

Scenario: The FabrikamGit Team wants to protect the master branch by only allowing commits that pass the Fabrikam CI build and have been code reviewed by at least two people in the Team. If the code being changed falls under the /src/FabrikamFiber...