PDA

View Full Version : Problem constructing Team Build 2008 command line


lherz
07-22-2008, 09:33 AM
I am trying to call a team build 2008 project with the Team Build step in v6.7, and am getting the following error with the resulting command line: (I have sanitized the command line to remove sensitive data replacing it with angle bracketed placeholders)

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\TFSBuild.exe" start "http://<TFSServer>:8080" "$/<Company>/TeamBuild/Types/<project>" "<BuildDef>" /queue /getoption Custom /customgetversion T /priority Normal /requestedfor <BuildDomain\User>
Microsoft (R) TfsBuild Version 9.0.0.0
for Microsoft Visual Studio Team System 2008
Copyright (c) Microsoft Corporation. All rights reserved.

Option getoption requires a value.

Process completed with exit code 100

I also receive an error if I define a build directory or build machine.
When including a build directory (drop location) the command line generated includes a "/d:<path to drop location>" parameter which the team build does not recognise. In looking at the comment line options for TFSBuild.exe 2008, I see a /dl: listed for drop location.

Adding a build machine option generates an /m:<buildMachingName> parameter on teh comment line, for which there is no apparent equivelent in TFSBuild 2008.


Any assistance will be greatly appreciated.

kinook
07-22-2008, 09:58 AM
Originally posted by lherz
I am trying to call a team build 2008 project with the Team Build step in v6.7, and am getting the following error with the resulting command line: (I have sanitized the command line to remove sensitive data replacing it with angle bracketed placeholders)

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\TFSBuild.exe" start "http://<TFSServer>:8080" "$/<Company>/TeamBuild/Types/<project>" "<BuildDef>" /queue /getoption Custom /customgetversion T /priority Normal /requestedfor <BuildDomain\User>
Microsoft (R) TfsBuild Version 9.0.0.0
for Microsoft Visual Studio Team System 2008
Copyright (c) Microsoft Corporation. All rights reserved.

Option getoption requires a value.

Process completed with exit code 100Install v6.7a.
http://www.kinook.com/Forum/showthread.php?threadid=3715

I also receive an error if I define a build directory or build machine.
When including a build directory (drop location) the command line generated includes a "/d:<path to drop location>" parameter which the team build does not recognise. In looking at the comment line options for TFSBuild.exe 2008, I see a /dl: listed for drop location.According to http://msdn.microsoft.com/en-us/library/ms181742.aspx, /droplocation can be abbreviated as /d. If the documentation is wrong, a workaround would be to clear out the Build directory field and add the /dl: flag to the Additional options field on the Options tab.

Adding a build machine option generates an /m:<buildMachingName> parameter on teh comment line, for which there is no apparent equivelent in TFSBuild 2008.Only Team Build 2005 supports that field/flag. Maybe this is stored in the build definition in 2008?

lherz
07-22-2008, 02:44 PM
Thanks for you quick response. I downloaded 6.7a and that resolved the colon issues. The /d does not work, but your workaround does. Again thank you.

Thanks again for your quick response.

lherz
07-22-2008, 02:47 PM
One thing I missed in my last port. I had misread the document on using /dl: The parameter that works is /dropLocation:<Path to drop location> the /d shortcut does not work.

Thanks.