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.

Additional Resources<br />

• For more information about project alerts, see “Setting Alerts” at<br />

http://msdn2.microsoft.com/en-us/library/ms181334(VS.80).aspx<br />

How to Receive Notification When a Build Has Failed<br />

You can create a new project alert <strong>with</strong> a filter to receive e-mails only when the build<br />

fails.<br />

To create a project alert to notify you when a build fails<br />

1. Create and Test your Build. Make sure that you have a <strong>Team</strong> Build type in place<br />

and that it runs <strong>with</strong>out errors.<br />

2. Register for BuildCompletionEvent event. Use the BisSubscribe.exe tool to<br />

register for the BuildCompletionEvent event <strong>with</strong> a filter specifying that you only<br />

want the e-mail notification when the build fails, by using the following commandline<br />

syntax:<br />

bissubscribe /eventType BuildCompletionEvent /address myemail@domain.com /deliveryType<br />

EmailPlaintext /server tfsserver1 /filter "<strong>Team</strong>Project = 'My<strong>Team</strong>Project' AND<br />

CompletionStatus=‘Failed’“<br />

3. Test the build. Test the build by checking in code that fails to compile, execute the<br />

build, and ensure that an e-mail notification is received.<br />

Additional Resources<br />

• For more information about filtering the build completion event, see “How to Filter<br />

the Build Completion Event” at<br />

http://blogs.msdn.com/jpricket/archive/2006/09/05/how-to-filter-the-buildcompletion-event.aspx<br />

• For more information about BuildCompletionEvent filters, see “Useful<br />

BuildCompletionEvent Filters” at<br />

http://blogs.msdn.com/jpricket/archive/2006/09/05/useful-buildcompletioneventfilters.aspx<br />

How to Start a Build<br />

You can start a build type from the <strong>Team</strong> Builds folder in <strong>Team</strong> Explorer.<br />

To manually start a build<br />

1. Open <strong>Team</strong> Explorer.<br />

2. Expand the team project for which you want to start a build.<br />

3. Expand the <strong>Team</strong> Builds folder in the tree.<br />

4. Right-click the <strong>Team</strong> Build type you want to start.<br />

5. Select Build <strong>Team</strong> Project.<br />

How to Verify That the Build Succeeded<br />

You can check build status from the Builds window, accessible from <strong>Team</strong> Explorer.

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

Saved successfully!

Ooh no, something went wrong!