TFS Error - Command "exited with code 1" during build
Posted On Thursday, April 10, 2008 at at Thursday, April 10, 2008 by Ben HWe recently made some modification to our Team Foundation build server. Ever since then my automated builds started getting this random error.
error MSB3073: The command ""C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\..\tf.exe" workfold /map /workspace:"CTCTFSBUILD1_23" /server:http://servername:8080/ "$/myproject/Current2008/LumenWorks.Framework.IO" "c:\builddir\myproject\IB - Workflow\BuildType\..\Sources\myproject\Current2008\LumenWorks.Framework.IO"" exited with code 1.It was a weird error because usually if I just started the build again it would complete successfully the next time. It finally got annoying enough that I did some research and solved the problem. It was a timeout issue. So, if there was a heavy load on the build server my build would fail. Here is the command that was causing the issue.
<Exec WorkingDirectory="$(SolutionRoot)" Command=""$(TfCommand)" workfold /map /workspace:"$(WorkSpaceName)" /server:$(TeamFoundationServerUrl) "%(Map.Identity)" "%(Map.LocalPath)"" />
Turns out there is "Timeout" property you can set. I think the default is 30 seconds, but I upped it to 2 minutes just to make sure I didn't timeout due to server load. Here is the command after I fixed it.
<Exec Timeout="120000" WorkingDirectory="$(SolutionRoot)" Command=""$(TfCommand)" workfold /map /workspace:"$(WorkSpaceName)" /server:$(TeamFoundationServerUrl) "%(Map.Identity)" "%(Map.LocalPath)"" />
I'm not sure how many people are running into this issue, but it was hard to track down so I posted it here and hopefully it will save some other people some time.
This post is great. It really helped me with an XCopy command.
Many, many thanks,
Peter
thanks for explaining the errors... great help
Well written article.
Thanks fro taking the time to post this!
Have you ever get below error ?
ASPNETCOMPILER : error ASPRUNTIME: Object reference not set to an instance of an object.
The command exited with code 1
It's stopping my web application begin compiled.
Any idea?
hm.. informative post..
krishan ieiase arranged hoes wenger robin misty separation centers participle perfecting
masimundus semikonecolori
Can anyone recommend the top Remote Desktop tool for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central configuration management
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!
Hey Ben, nice post.. good explanation.. thanks...