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

Creating a new build task using the TFBuild Extensibility framework


The new build system comes with a wide range of prepackaged build tasks. Out-of-the-box tasks are complimented with the presence of popular scripting engines. This helps address scenarios that aren't directly covered with the out-of box-tasks. The new build system has been architected from the ground up with a special focus on extensibility. In this recipe, you'll learn how to create a new build task using the extensibility framework available in the new build system.

Getting ready

The TFS Extensions command-line utility (tfx-cli) needs to be used for building task management. The utility is based on Node.js. As a prerequisite to using tfx-cli, download and install Node.js from https://nodejs.org/en/download. The extensibility command-line utility can directly be installed by launching command prompt and running the following command:

npm install -g tfx-cli

To authenticate with TFS, the tfx-cli utility only accepts Personal...