Thursday, January 03, 2008 10:19 AM
kolbis
Starting Team Build From The Command Line
My motivation to initiate the team build from the command line was the need to perform nightly build. To do so I needed to create an executable or a batch file that I can schedule using Windows scheduler.
So the first step for me was to create a batch file:
SET TFSDIR="D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\"
SET TFSSVR="TFS Server"
SET TEAMPROJECT="TFS Project"
SET BUILDTYPE="TFS Team Build Type"
%TFSDIR%TFSBuild.exe start %TFSSVR% %TEAMPROJECT% %BUILDTYPE%

The next step after competing the batch file was to schedule it using windows scheduler.
To complete this, just select the scheduling information and you are good to go.
Enjoy!
תגים:Team System, Team Build