How to Automatically Run Continuous Integration Builds

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

Although Visual Studio 2005 Team Foundation Server does not provide a Continuous Integration (CI) solution out of the box, it does provide the framework for you to implement your own CI solution.

To set up a CI build solution
  • Create and test your build. Make sure that you have a Team Build type in place and that you can run it without errors.
  • Install the Continuous Integration add-on. Install the CI add-on from http://msdn2.microsoft.com/en-us/library/ms364045(VS.80).aspx.
  • Configure the Continuous Integration add-on. Ensure that the CI Web application virtual root runs in the TFSAppPool application pool. Update the CI Web application Web.config file so that it works with your team server and team build by adding the following key:
<add key="1" value="TeamServer=http://TFSRTM:8080;TeamProjectName=AdventureWorks;BuildType=Test Build"/>
  • Register for the CheckinEvent event. Use the BisSubscribe.exe tool to register for the check-in event, by using the following command line:
Bissubscribe /eventType CheckinEvent /address http://TFSRTM:8080/ci/notify.asmx /deliveryType Soap /domain [url:http://tfsrtm:8080/] 
  • Test the CI build. Test the build by completing a check-in. Wait a few minutes for the build to complete, and then view the builds page to see if the build completed successfully.
  • Set up e-mail alerts. Set up alerts so that concerned parties can be notified when the build completes. Open the Project Alerts dialog box from the team project context menu, and then select the A build completes alert check box.

For more information and expanded steps, see “How To – Set Up a Continuous Integration Build with Visual Studio Team Foundation Server” in this guide.

Additional Resources

Last edited Jul 26, 2007 at 6:52 AM by prashantbansode, version 1

Comments

No comments yet.