Navigation

Search

Categories

On this page

Archive

Blogroll

Disclaimer
None - these are my opinions and they're also my employer's!

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 14
This Year: 0
This Month: 0
This Week: 0
Comments: 15

Sign In

 Monday, November 05, 2007
Monday, November 05, 2007 9:25:01 PM (Mountain Standard Time, UTC-07:00) ( )

I've been working a lot with Team Foundation Server lately (2005, unfortunately) doing builds and have created a bunch of test builds out on my client's TFS.  I knew the easiest way to delete builds was using the TFSBuild.exe utility but I couldn't find any help on how to send multiple build numbers to the utility on the command line.  I saw a couple of references that said to separate them with commas but that didn't work - it appeared to interpret the concatenated list as one build number.

So, I tried using spaces between each build number and that worked.  Hopefully, this will help anyone else trying to clean up their build messes.  I have a feeling things would have been quite a bit easier had I worked in TFS 2008 but my client couldn't wait until they brought that upgrade into their environment.

Example below: (be sure to use quotes if build names contain spaces)

C:\>tfsbuild delete http://tfsserverurl:8080 "Team Project Name" Development_RC1.3.4 Development_RC1.3.5 Development_RC1.3.6 Development_RC1.3.7 /noprompt

Microsoft (R) TfsBuild Version 8.0.0.0
for Microsoft (R) Visual Studio 2005 Team System
(C) Copyright 2006 Microsoft Corporation. All rights reserved.

Deleting Development_RC1.3.4... Done

Deleting Development_RC1.3.5... Done

Deleting Development_RC1.3.6... Done

Deleting Development_RC1.3.7... Done

Comments [1] | | # 
Tuesday, February 12, 2008 7:57:29 AM (Mountain Standard Time, UTC-07:00)
Cool, the post.

Thanks for the information.
Comments are closed.