I was assuming that once I switched my checkout mode from Automatically on Server to Automatically on Agent, the repository + all git info would be pulled for GitVersion to work properly, but that was not the case for me.
The repo is pulled as expected (by TeamCity), but when I get to my GitVersion runner step, it says: Fetching from remote 'origin' using the the following refspecs: +refs/heads/:refs/remotes/origin/.
Then it fails: LibGit2Sharp.LibGit2SharpException: Request failed with status code: 401
Likely because the runner does not have the username.
When I go back to edit the steps properties, add the repo url, with the username and password it works as expected - but files are checked out twice, once by teamcity and then again by the meta runner. Is this to be expected? I thought once the files were checked out by teamcity and all the git info was available that GitVersion would have everything it needs to process. Am I missing something here?
I was assuming that once I switched my checkout mode from Automatically on Server to Automatically on Agent, the repository + all git info would be pulled for GitVersion to work properly, but that was not the case for me.
The repo is pulled as expected (by TeamCity), but when I get to my GitVersion runner step, it says: Fetching from remote 'origin' using the the following refspecs: +refs/heads/:refs/remotes/origin/.
Then it fails: LibGit2Sharp.LibGit2SharpException: Request failed with status code: 401
Likely because the runner does not have the username.
When I go back to edit the steps properties, add the repo url, with the username and password it works as expected - but files are checked out twice, once by teamcity and then again by the meta runner. Is this to be expected? I thought once the files were checked out by teamcity and all the git info was available that GitVersion would have everything it needs to process. Am I missing something here?