2013-02-12 61 views
3

我们正在将我们的构建从Team Build(团队基础服务)迁移到使用Jenkins CI构建的本地构建机器。但是,我们仍然希望将云用于源代码管理。所以现在我们需要访问云TFS来获取最新版本。 詹金斯有一个TFS插件,但这是针对TFS 2008制作的。在Team Foundation Service中使用TF.exe?

现在我遇到了问题,我无法使用VS2012中的TF.exe访问云端TFS。 我在这里发现了一篇文章,向我展示了TFS 2008和2010(我需要将/tfs/DefaultCollection添加到服务器URL)之间的区别,但这不适用于云TFS。

这里的错误:

TF31002: Unable to connect to this Team Foundation Server: https://myserver.visualstudio.com/tfs/DefaultCollection .

Team Foundation Server Url: https://myserver.visualstudio.com/tfs/DefaultCollection .

Possible reasons for failure include: - The name, port number, or protocol for the Team Foundation Server is incorrect . - The Team Foundation Server is offline. - The password has expired or is incorrect.

Technical information (for administrator): The Remoteserver returned an error: (404) Not found.

我一直有和没有/tfs/DefaultCollection试了一下。同样的结果。根据我所发现的,文档几乎没有任何内容。

有没有人成功地用TF.exe访问云TFS?

编辑:通过其他文章浏览,我看到别人这样做是没有/tfs,所以只需添加/DefaultCollection (感谢微软改变URL与每一个版本...) 然而,输出仍然是废话。

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE>tf workspaces -format:brief /server: https://myserver.visualstudio.com/DefaultCollection /login :myuser,mypassword

结果:

No workspace matching *;[NAME OF ANOTHER USER] on computer MYMACHINE found in Team Foundation Server https://myserver.visualstudio.com/DefaultCollection .

回答

3

OK,找到了解决办法... 添加 “/计算机:*” 如果没有工作空间是在机器上运行映射之前tf.exe ...

结论: 在每个版本中,连接到TFS集合的URL都已更改。

TFS 2008: mytfs

TFS 2010: mytfs/tfs/DefaultCollection

TFS 2012: mytfs/DefaultCollection

OMG ..

相关问题