将 TeamCity 连接到 Visual Studio Online [英] Connect TeamCity to Visual Studio Online

查看:18
本文介绍了将 TeamCity 连接到 Visual Studio Online的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从本地 TFS 迁移到 Visual Studio Online.我们有非常详细的 TeamCity 构建流程,我们不想迁移这些流程,因此让 TeamCity 与 VSO 一起工作将是理想的选择.

我已经创建了替代用户凭据(根据 和 而不是使用备用凭据.

然后在您的 VCS Root 配置中按以下方式映射您的 TFVC 根:

Root:$/MyProject/Path/To/Branch/Root

Jetbrains Confluence 站点上查看这篇文章以了解更多信息详情.

I'm trying to migrate from on-premises TFS to Visual Studio Online. We have quite elaborate TeamCity build process that we don't want to migrate away from, so having TeamCity working with VSO would be ideal.

I've created alternative user credentials (as per this article) and using these credentials in TeamCity. But when I create new VCS in TeamCity, I get connection error:

TF30063: You are not authorized to access https://myproject.visualstudio.com/DefaultCollection/MyProject

I've tried my actual credentials (not alternative ones) but nothing changed - same error.

Also I've tried using alternative credentials with tf command line tool and could not enter alternative credentials - a window popped up, asking me for my LiveId.

Any idea how to fix this?

p.s. this is how TeamCity configuration look like:

解决方案

To connect to Visual Studio Online you indeed need to enable alternate credentials on the account you'll use for Team City. Ensure that at least Team Explorer 2012 and update 4 is installed on the Team City server, install the whole Visual Studio 2012 incl Update 4. Team City requires at least update 2, but Microsoft only supports Visual Studio 2012 RTM and the latest update (which is update 4).

Then in the connection screen use the following information:

Repository URL: https://myaccount.visualstudio.com/DefaultCollection

Username: ##LIVEID##your.email@live.com // Your visual Studio Online User Name, must match your LiveId.

Password: ********* // The password you setup for the alternate credentials.

You can also use the VSO Service Account credentials instead of using Alternate Credentials.

Then in your VCS Root configuration map your TFVC root in the following way:

Root: $/MyProject/Path/To/Branch/Root

Check out this post on the Jetbrains Confluence site for more details.

这篇关于将 TeamCity 连接到 Visual Studio Online的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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