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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Nightly Builds<br />

This is the most common scheduled build frequency because it gives your test and<br />

development team a new build every morning incorporating the changes from the<br />

previous day, ready to be tested.<br />

Weekly Builds<br />

If you are working on a large, complex project, where the build time can last for days,<br />

you should opt for weekly builds. This ensures that your test team has a build at the start<br />

of each week incorporating the changes from the previous week, ready to be tested.<br />

Scheduled Build in <strong>Team</strong> <strong>Foundation</strong> <strong>Server</strong><br />

The <strong>Team</strong> Build feature in TFS does not support scheduled builds from the user interface.<br />

Instead, you can use the Microsoft Windows® Task Scheduler to run the TFSBuild<br />

command utility to start builds at predetermined time.<br />

Use the following steps to create a scheduled build:<br />

1. Create a TFSBuild command line.<br />

TfsBuild start <br />

2. Place the command line in a batch file. Note that you must specify the full path to<br />

the TFSBuild.exe file so that it can run from windows command prompt. An<br />

example of the command used in the batch file is shown here:<br />

"C:\Program Files\Microsoft <strong>Visual</strong> <strong>Studio</strong> 8\Common7\IDE\TFSBuild" start<br />

<br />

3. Create a Windows Scheduled Task that runs the batch file at your desired interval.<br />

For more information see “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 />

Summary<br />

Use a scheduled build to produce consistent builds that you can give to your test team or<br />

other build consumers who can provide feedback on the quality of the build. <strong>Team</strong><br />

<strong>Foundation</strong> <strong>Server</strong> does not support scheduled builds from its user interface. Instead you<br />

can use the Windows Task Scheduler to run the TFSBuild command utility to start your<br />

builds at a predetermined time.<br />

You can configure scheduled builds to run hourly, daily, weekly, or at any time interval<br />

that suits the requirements of your project.

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

Saved successfully!

Ooh no, something went wrong!