JetBrains / meta-runner-power-pack

A set of Meta-runners for TeamCity
Apache License 2.0
257 stars 125 forks source link

Confusion as to how to use the GitVersion meta runner #69

Open jjwilliams42 opened 8 years ago

jjwilliams42 commented 8 years ago

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?

gambrose commented 8 years ago

GitVersion will try and pull from origin when it resolves the version unless "/nofetch" is passed.