We implemented three identical build servers and when we run the same script it fails on one of them with the following error:
Error: Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.
The issue is identical to this one, so we probably need to add the tf workfold /map
command:
FInalBuilder 7 and TFS2010 - Get Latest
Now the question is, if we need to add the command above, how it can run correctly many times on the other two build servers?
[Team Foundation Check Out [ C:\BuildAgent\work\27a5ec307fc309bf\Core\Geometry\Source ]]
Path to Executable: C:\Program Files (x86)\Microsoft Visual Studio\2017\TeamExplorer\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe
Workspace Directory: C:\BuildAgent\work\27a5ec307fc309bf\Core\Geometry\Source
Command line: checkout /lock:none "Properties\assemblyInfo.cs"
Error: Unable to determine the workspace. You may be able to correct this by running 'tf workspaces /collection:TeamProjectCollectionUrl'.
Failed!