We're currently using TeamCity with Perforce, server is running on Windows. We are going to be moving to a GitHub Enterprise server soon, and I am trying to get TeamCity to access a test server prior to the move.
The code is going to be in private repositories, so all access must be authenticated. We are going to be using access tokens and don't want those tokens stored in the TeamCity project settings.
I already have the git credential helper enabled on the build server, and the access token for the server is stored there. I can clone that repository from the command line using no authentication in the URL, which is our desired method.
However, when I try to create a VCS Root using the https URL of a private repository, I get an authentication failure error when trying to test the connection. If I switch to the URL of a public repository under the same username, I am able to successfully test the connection.
I have tried setting the internal property for the git executable to point at the git.exe in the GitHub for Windows install to make sure it's not using a different version of git that we have installed that doesn't support https URLs.
I have not been able to find any information about anyone using git credential helpers with TeamCity. Has anyone done this before?