使用TF.exe与Team Foundation服务? [英] Using TF.exe with Team Foundation Service?

查看:495
本文介绍了使用TF.exe与Team Foundation服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将我们的构建从Team Build(Team Foundation Service)移动到使用Jenkins CI进行构建的本地构建机器。但是,我们仍然希望将云用于源代码管理。所以现在我们需要访问云TFS来获得最新的构建。
Jenkins有一个TFS插件,但是它是为TFS 2008创建的。

We're moving our build from Team Build (Team Foundation Service) to a local build machine using Jenkins CI for build. However, we still want to use the Cloud for Source Control. So now we need to access the cloud TFS to get the latest build. Jenkins has an TFS Plugin, but that was made for TFS 2008.

现在我有问题,我无法访问云TFS TF.exe从VS2012。
我在这里找到一篇文章,显示了TFS 2008和2010之间的区别(我需要添加 / tfs / DefaultCollection 到服务器URL),但是didn无法使用云TFS。

Now I have the problem that I'm not able to access the cloud TFS with TF.exe from VS2012. I found an article here that showed me the difference between TFS 2008 and 2010 (I need to add /tfs/DefaultCollection to the server URL), but that didn't work with the cloud TFS.

以下是错误:


TF31002 :无法连接到此Team Foundation Server: https://myserver.visualstudio.com/tfs/DefaultCollection

Team Foundation服务器网址: https: //myserver.visualstudio.com/tfs/DefaultCollection

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

可能的失败原因包括:
- 名称,端口号或协议对于Team Foundation Server不正确的

- Team Foundation Server处于脱机状态。
- 密码已过期或不正确。

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.

技术信息(管理员):
Remoteserver返回错误: 。

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

我试过了,没有 / tfs / DefaultCollection 。相同的结果。

I've tried it with and without the /tfs/DefaultCollection. Same result.

根据我发现的文件,没有什么。

Documentation, according to what I have found, is next to nothing.

任何成功访问云TFS与TF.exe?

Has anybody had any success accessing the cloud TFS with TF.exe?

编辑:浏览其他文章,我看到其他人没有它 / tfs ,所以只需添加 / DefaultCollection
(感谢Microsoft更改每个版本的URL ...)
然而,

browsing through other articles, I saw that others did it without the /tfs, so just add /DefaultCollection (thanks to Microsoft for changing the URL with every version...) However, the output is still crap.


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

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

结果:


在Team Foundation Server中找到的计算机MYMACHINE上没有工作空间匹配*; [另一个用户的名称] https:// myserver.visualstudio.com/DefaultCollection


推荐答案

...
如果在运行tf.exe的机器上没有映射工作区,则添加/ computer:*...

ok, found the solution... Add "/computer:*" if no workspace was mapped on the machine running tf.exe before...

结论:$ b $


TFS 2008:mytfs

TFS 2008: mytfs

TFS 2010:mytfs / tfs / DefaultCollection

TFS 2010: mytfs/tfs/DefaultCollection

TFS 2012:mytfs / DefaultCollection

TFS 2012: mytfs/DefaultCollection

OMG ..

这篇关于使用TF.exe与Team Foundation服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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