【发布时间】:2016-04-01 14:49:13
【问题描述】:
Exception Message: Unable to create the workspace '9_20_NAME' due to a mapping conflict. You may need to manually delete an old workspace. You can get a list of workspaces on a computer with the command 'tf workspaces /computer:%COMPUTERNAME%'.
Details: The path D:\Builds\NAME is already mapped in workspace 9_22_NAME. (type MappingConflictException)
Exception Stack Trace: at Microsoft.TeamFoundation.Build.Workflow.Activities.TfCreateWorkspace.Execute(CodeActivityContext context)
at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
所以上面的问题已经困扰我一个多星期了,从表面上看,这似乎是一个简单的问题,删除或重命名工作区并继续前进。然而,这个问题不会那么容易转移。
简而言之,我尝试了以下方法:
- 清除工作区
- 创建了新的构建定义
- 将构建文件夹位置(例如 D:\builds\name 移动到 D:\builds\name-2)
- 构建机器重启
- 已卸载/重新安装 TFS(2013 更新 3)
- 重建构建机器并恢复 TFS 数据库
我几乎已将问题范围缩小到 TFS 本身的某个问题,但无论如何我都无法找出是什么。
值得注意的是,当我删除工作区(使用 TFS sidekicks)时,构建最多会运行几次。我还没有确切地缩小导致从成功到失败的变化的确切范围,但是我可以删除所有工作区然后运行构建几次而没有问题,然后突然这会回来(在不断重复失败之前大约 2-3 次构建) .
【问题讨论】:
标签: msbuild windows-server-2012-r2