Connect TeamCity to Visual Studio Online

I am trying to migrate from local TFS to Visual Studio Online. We have a rather complicated TeamCity build process that we don’t want to tidy up, so TeamCity working with VSO would be ideal.

I created alternative user credentials (according to this article ) and using these credentials in TeamCity. But when I create a new VCS in TeamCity, I get a connection error:

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

I tried my actual credentials (and not alternate ones) but nothing changed - same error.

I also tried using alternative credentials using the command line tool tfand could not enter alternative credentials - a window appeared asking for my LiveId.

Any idea how to fix this?

ps this is what TeamCity configuration looks like:

enter image description here

+4
source share
3 answers

To connect to Visual Studio Online, you really need to include alternate credentials in the account you will use for Team City. Make sure that at least Team Explorer 2012 and update 4 is installed on the Team City server, install all of Visual Studio 2012, including Update 4. Team City requires at least update 2, but Microsoft only supports RTM for Visual Studio 2012 and the latest update (this update 4).

Then, on the connection screen, use the following information: enter image description here

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

: ##LIVEID##\your.email@live.com// Visual Studio LiveId.

: *********//, .

VSO .

VCS Root TFVC :

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

Jetbrains Confluence.

+5

. TC, , - VCS Roots . VCS git visual studio .

, - .

Restarting the TC service also did not affect the problem. In the end, restarting the entire TC server fixed the problem. Hope this helps someone else.

0
source

Source: https://habr.com/ru/post/1545668/


All Articles