Jeff Atwood started out with the continuous integration with MSDN CI sample for Team Build. Then he made improvements to it and posted it as a A Kinder, Gentler Continuous Integration service for Team Foundation Server. You can use Abhinaba's build notification tools to keep track of how it's going.
A Kinder, Gentler Continuous Integration service for Team Foundation Server
In an earlier post, I documented how to set up Microsoft's unofficial Continuous Integration solution for Team System.
I was a little.. perplexed.. by the code inside that web service. I took some time to refactor it and polish it up into something I personally found much simpler and easier to understand. For example, I added proper XML comments throughout, and made the log file more visible and timestamped.
It's still 99% the product of Khushboo's hard work, don't get me wrong, but this is a kinder, gentler version of the Continuous Integration web service you could deploy to your Team Foundation Server with the confidence that you could easily modify it if you needed to.