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.

时间: 2024-10-25 23:08:15

How to fix TFS workspace mapping error in Jenkins的相关文章

【转】删除已经存在的 TFS Workspace

删除已经存在的 TFS Workspace 分类: TFS2010-03-03 16:59 1239人阅读 评论(2) 收藏 举报 serverpathcommandcachefilegoogle 工作转移到新的TFS平台 打开source control在创建workspace时出错 信息为: The Path <local path> is already mapped in workspace <machine name [old tfs server]> 很诡异的bug:)

java.io.IOException: Cannot run program &quot;/opt/jdk1.8.0_191/bin/java&quot; (in directory &quot;/var/lib/jenkins/workspace/xinguan&quot;): error=2, No such file or directory

测试jenkins构建,报错如下 Parsing POMs Established TCP socket on 44463 [xinguan] $ /opt/jdk1.8.0_191/bin/java -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.13.jar:/opt/maven-3.6/boot/plexus-classworlds-2.5.2.jar:/opt/maven-3.6/conf/log

(VS) TFS lost mapping suddenly.

家里的网络不是很稳定.今天突然发现 TFS 上所有的 mapping都突然没有了. 尝试去remapping,在Source Control Explorer 中右击源文件,然后选择 Advanced -> Map to loacal folder. 然后出来了个对话框,说Workspace已经被map了,很奇怪. 于是查看worksapce状况.File -> Source Control -> Advanced -> Workspace... 发现了Worksapce 和 TF

TFS Workspace 更改电脑名称

不小心改了计算机名称 导致VS在保存项目的时候,包如下错误: 解决方法: 第一步: 第二步:输入如下片段 tf workspaces /updateComputerName:旧计算机名称  /collection:"http://主机地址:端口/tfs/集合名称"

TFS Express backup and restore

 When we setup source control server, we should always make a backup and restore plan for it. This article is to describe how to backup and restore a TFS Express instance from one server to another server. This blog is an English version, for Chine

TFS 自动同步Server 端文件的批处理命令

TFS 自动同步Server 端文件的批处理命令 目前在我们组的工作中很多时候需要将TFS上Server端的代码自动无人值守的同步到本地中来, 找到了一些解决方案的资料http://bbs.scmroad.com/archiver/?tid-21003.html. 经过试验,我们总结成以下步骤,希望对大家有所借鉴. Steps: 1.       点选VS Source Explorer 上面的TFS目录列表. 2.       新建一个TFS 的 workspace. 3.       点击S

[转][TFS] 禁止默认允许多人签出和强制解除签入签出锁

使用 Visual Studio 2010 Team Foundation Server 进行源代码编辑时,可以对代码实施以下三种锁定之一: Unchanged - Keep any existing lock Check Out - Prevent other users from checking out and checking in Check In - Allow other users to check out but prevent them from checking in 貌似

启动C++test时报错“an error has occurred, null”

当双击桌面的C++test图标时,弹出错误:“an error has occurred,please check the log file, null” 解决方式如下图所示: 通过命令行方式启动C++test,并且添加必要的参数选项”-clean”,如下图示: 参考资料: I am currently using Eclipse Indigo Service Release 1 and out of a sudden received a strange error message when

Dynamic DMA mapping Guide

一.前言 这是一篇指导驱动工程师如何使用DMA API的文档,为了方便理解,文档中给出了伪代码的例程.另外一篇文档dma-api.txt给出了相关API的简明描述,有兴趣也可以看看那一篇,这两份文档在DMA API的描述方面是一致的. 二.从CPU角度看到的地址和从DMA控制器看到的地址有什么不同? 在DMA API中涉及好几个地址的概念(物理地址.虚拟地址和总线地址),正确的理解这些地址是非常重要的. 内核通常使用的地址是虚拟地址.我们调用kmalloc().vmalloc()或者类似的接口返