Connecting TeamCity 8.1.3 to VS online Git

Hi,

I'm trying to connect TeamCity to a Git instance on Visual Studio Online. I've followed all the correct processes and added alternative credentials. These credentials work as I have TeamCity connecting to a TFSC instance on Visual Studio online.

I can connect to the repository and push to it from GitExtensions so I know the repository is fine. I'm struggling to work out what I've done wrong.

My error is:

TF31002: Unable to connect to this Team Foundation Server: https://zibrant.visualstudio.com/DefaultCollection/_git/TestTFSGit.
Team Foundation Server Url: https://zibrant.visualstudio.com/DefaultCollection/_git/TestTFSGit.
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 remote server returned an error: (404) Not Found.

The URL exists and resolves to my Visual Studio Online Git project.  I have the following settings in the VCS root settings on TeamCity. Any help would be appreciated.

settings.PNG

7 comments
Comment actions Permalink

Hi,

Type of VCS should be Git if you use git repository. Also please turn on basic authentication.

0
Comment actions Permalink

Having same issue described in this thread. Visual Studio Online + Git Repo + Teamcity. with connection error shown in connerror.jpg.

I have enabled the alternate authentication on VSO server for the login I am using to connect to VSO GIT repo. But still having this error.

I am able to connect to this GIT repo using same login through webstorm fine.

Note: I am using latest version of Teamcity i.e (9.0.3 (build 32334))



Attachment(s):
connerror.JPG
teamcitygit.JPG
0
Comment actions Permalink

Hi Asad,

Do you host TeamCity server in Azure?
Please attach teamcity-vcs.log and teamcity-server.log covering the problem.

0
Comment actions Permalink

Thanks for the reply Alina,

Teamcity server is on my local machine right now. Haven't tried on Azure yet. Soon I will :)

I am attaching the full teamcity log folder from my local machine. This is the fresh log by clearing all the existing log and the tried to connect to VSO's git repo with same error.

Please let me know if you require any more information as I desperately need to resolve this.

Thanks once again.


Update: I have managed to connect to VSO git repo from my home PC teamcity server. Problem is from my work PC, which is behind a corporate proxy. Following these instruction: http://www.diaryofaninja.com/blog/2013/06/17/teamcity-and-git-behind-a-corporate-ntlm-proxy-server...

..however can't open the JVM options using tomcat7w //ES//TeamCity command.



Attachment(s):
logs.zip
0
Comment actions Permalink

Please try the following setup: https://confluence.jetbrains.com/display/TCD9/How+To...#HowTo...-ConfigureTeamCitytoUseProxyServerforOutgoingConnections

0
Comment actions Permalink

Thanks,

I am a .net developer, therefore having hard time setting JVM options :) .

Not sure where and how to set following options for JVM? Can you please help me setting these up?

-Dproxyset=true

-Dhttp.proxyHost=proxy.domain.com

-Dhttp.proxyPort=8080

-Dhttp.nonProxyHosts=domain.com

-Dhttps.proxyHost=proxy.domain.com

-Dhttps.proxyPort=8080

-Dhttps.nonProxyHosts=domain.com
0
Comment actions Permalink

You need to set these options to the TEAMCITY_SERVER_OPTS environmental variable. For more details see this link.

0

Please sign in to leave a comment.