How to fix TFS workspace mapping error in Jenkins

Once you had update in TFS workspace for Jenkin TFS plugin, you might get error like bellow:

[workspace] $ "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe" workspaces -format:brief -server:http://tfs.xxx.com:8080/tfs/Default ********
Collection: tfs.xxx.com\Default
Workspace   Owner      Computer    Comment
----------- ---------- ----------- --------------------------------------------
MyServer newUser MyServer 
[workspace] $ "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\TF.exe" workspace -new "Hudson-My build job-MASTER;nam\newUser" -noprompt -server:http://tfs.xxx.com:8080/tfs/Default ********
The path D:\hudson\jobs\My build job\workspace is already mapped in workspace Hudson-My build job-MASTER;NAM\oldUser.
FATAL: Executable returned an unexpected result code [100]
ERROR: null

You should follow bellow steps to fix it:
1. Remove the workspace:

From VS:

  1. Open Team Explorer
  2. Click Source Control Explorer
  3. In the nav bar of the tool window there is a drop down labeled "Workspaces".
  4. Extend it and click on the "Workspaces..." option (yeah, a bit un-intuitive)
  5. The "Manage Workspaces" window comes up. Click edit and you can add / remove / edit your workspace

From the command line

Call "tf workspace" from a developer command promt. It will bring up the "Manage Workspaces" directly!

2. Remove cache on this computer

By manually deleting all the files in the TFS cache, located here:

C:\Users\{UserName}\AppData\Local\Microsoft\Team Foundation\3.0\Cache

If there is a \4.0\Cache and \5.0\Cache existed, delete them all.

转载于:https://www.cnblogs.com/cicaday/p/4298087.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值