Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Team Build: The path 'Path' is already mapped in workspace 'workspace' error even after deleting all workspaces on build agent

Tags:

I have this problem when I queue a build. The build dies with the error

The path C:\[Path]\Sources is already mapped in workspace [Server Name].

the same as this question. but I've removed all the workspaces on the build agent by running this command:

tf workspaces /remove:* 

and also by deleting the TFS cache folder. I've also restarted the server, but the error keeps happening on each build.

like image 963
Glenn Slaven Avatar asked Feb 23 '10 23:02

Glenn Slaven


People also ask

What is the command line statement to edit workspace settings in TFS?

To make the current directory a working folder for an existing workspace on your computer, type tf workspace workspacename, where workspacename is the name of the existing workspace. The Edit Workspace dialog box appears.


1 Answers

Ok, so the solution ended up being fairly similar to what YeahStu posted on here. I changed the Build Agent's working directory from

$(Temp)\UI\$(BuildDefinitionPath) 

to

$(Temp)\UI\$(BuildDefinitionPath)\$(BuildDefinitionID) 

What is odd is that the other build agent we have is still running in $(Temp)\UI\$(BuildDefinitionPath) and working fine. The only difference between the two agents is the the one that stopped working had Visual Studio 2010 RC installed on it, while the one that's still working has VS2010 Beta2 on it. No idea why this should make a difference.

like image 65
Glenn Slaven Avatar answered Sep 19 '22 12:09

Glenn Slaven