26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How To: Set Up a Scheduled Build in <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong><br />

<strong>Foundation</strong> <strong>Server</strong><br />

Applies To<br />

• Microsoft® <strong>Visual</strong> <strong>Studio</strong>® 2005 <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> (TFS)<br />

• Microsoft <strong>Visual</strong> <strong>Studio</strong> <strong>Team</strong> System (VSTS)<br />

Summary<br />

Although <strong>Visual</strong> <strong>Studio</strong> 2005 <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong> does not provide scheduled builds<br />

out of the box, you can use the TFSBuild command to implement your own scheduled<br />

builds. This How To article walks you through the process of setting up a scheduled build<br />

by using the TFSBuild command and the Microsoft Windows® Task Scheduler.<br />

Contents<br />

• Objectives<br />

• Overview<br />

• Summary of Steps<br />

• Before You Begin<br />

• Step 1 – Create and Test Your Build<br />

• Step 2 – Create the TFSBuild Command Line<br />

• Step 3 – Test the TFSBuild Command Line<br />

• Step 4 – Create a Batch File<br />

• Step 5 – Test the Batch File<br />

• Step 6 – Add a Scheduled Task<br />

• Step 7 – Test the Scheduled Task<br />

• Additional Resources<br />

Objectives<br />

• Learn what a scheduled build is.<br />

• Create a scheduled build by using the TFSBuild command utility and the Windows<br />

Task Scheduler.<br />

Overview<br />

It is highly important that a project development team to generate regular builds in order<br />

to get timely feedback from a test team as well as other stake holders. This can be<br />

achieved through the use of scheduled builds. You can choose to schedule your build on a<br />

nightly, weekly, biweekly, or on any other regular schedule depending upon your project<br />

scope and requirements.<br />

Although the <strong>Team</strong> Build feature in TFS does not have support scheduled builds out of<br />

box, it does provide a TFSBuild command line utility that enables you to initiate team<br />

builds from the command line. You can use any scheduler, such as the Windows Task

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!