团队构建:即使删除构建代理上的所有工作区,路径“路径"也已映射到工作区“工作区"错误中 [英] Team Build: The path 'Path' is already mapped in workspace 'workspace' error even after deleting all workspaces on build agent

查看:33
本文介绍了团队构建:即使删除构建代理上的所有工作区,路径“路径"也已映射到工作区“工作区"错误中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在排队构建时遇到此问题.构建因错误而终止

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

路径 C:\[Path]\Sources 已经映射到工作区 [Server Name] 中.

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:*

以及删除 TFS 缓存文件夹.我也重新启动了服务器,但每次构建时错误不断发生.

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

推荐答案

好的,所以最终的解决方案与 YeaStu 张贴在这里.我从

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)

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

奇怪的是,我们拥有的另一个构建代理仍在 $(Temp)\UI\$(BuildDefinitionPath) 中运行并且工作正常.两个代理之间的唯一区别是停止工作的代理安装了 Visual Studio 2010 RC,而仍在运行的代理安装了 VS2010 Beta2.不知道为什么这会有所作为.

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.

这篇关于团队构建:即使删除构建代理上的所有工作区,路径“路径"也已映射到工作区“工作区"错误中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆