Creating a Daily Build

Team Build is a very powerful tool, but it does not do scheduled builds out of the box. Fortunately, creating a scheduled build is very easy. With my current project, I have created a Build Type called "DailyBuild." I want this build to run each day at 3PM so that I can make sure no changes checked in during the day have broken my application. So here is what I did to achieve this.
  1. I created a batch file that contains the following and saved it on my Build server's D drive (hence the C:). @echo off C: CD C:\Program Files\Microsoft Visual Studio 8\Common 7\IDE TFSBUILD.EXE START tfsservername projectname buildname
  2. I added a new Scheduled Task (Control Panel) that points to this batch file and schedule it to run each day at 3 PM.
To learn more about TFSBuild just open the command prompt and navigate to the folder above and type TFSBuild. Happy Coding!

Feedback

No comments posted yet.


Post a comment





 

 

News

Visit my blog at http://www,michaelazocar.com/blog

Archives

Post Categories

Syndication: