Disclaimer None - these are my opinions and they're also my employer's!
| |
E-mail
Sign In
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