Thursday, May 29, 2008

Delete Team System Builds

Some features of Team System can only be reached at the command line.
Unfortunately deleting a build is one of these.

You will need to use the "Visual Studio 2008 Command Prompt" (or "Visual Studio 2005 Command Prompt"). This has the the 'Path' variable correctly set to find 'TfsBuild'.

C:\Program Files\Microsoft Visual Studio 8>tfsbuild /?
Microsoft (R) TfsBuild Version 8.0.0.0for Microsoft (R) Visual Studio 2005 Team System(C) Copyright 2006 Microsoft Corporation. All rights reserved.

TfsBuild help [command]

command The name of the command you want help on

List of commands:
start Starts a new build on the build machine
delete Deletes completed build(s)
stop Stops the build that is in progress
help Prints this help message


Usually you will need to stop a build before deleting it.

c:\tfsbuild stop http://tfsserver:8080/ "Tfs Project Name" samplebuild_20080529.4

Then you can delete it:

c:\tfsbuild delete http://tfsserver:8080/ "Tfs Project Name" samplebuild_20080529.4

No comments: