New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using GitVersion on Teamcity crashes on InvalidOperationException #1825
Comments
Ehm, I guess I figured out why. However I found a hidden variable in Teamcity Git config which forces teamcity to fetch all branches.
After this, the GitVersion with MainLine started to work for the cost of fetching more than needs to be fetched. Another solution would be to set fetch remote url in GitVersion task, but I can't use that, because I run this against prototype gitlab instance which has self-signed certificate and git fetch doesn't like that. I tried to disable it in metarunner with sslVerify=false, but to no vail. :/ Hope this helps somebody. |
Yes, the
…but we've never gotten to actually documenting it anywhere. Would you be up for submitting a PR that writes this into our documentation, @jakubsuchybio? |
I will try to. |
Hi,
long story. I'll try to be short.
We are migrating from SVN to GIT.
We already migrated prototype, created TeamCity configuration to use GitVersionTask and it worked.
Then we found, that commit author names and emails were wrong.
We did new migration which fixed commit authors, but broke GitVersioning on Teamcity.
We didn't change anything inside GitVersion.yml.
When I install GitVersionTask as nuget to one of 160+ projects, it creates the version fine on my dev machine with this GitVersion.yml
When I switch mode to
ContinuousDelivery
it works on teamcity.When I switch mode to
ContinuousDeployment
it works on teamcity.I found this in one of these:
#1671
#1625
#453
However the ContinuousDelivery or ContinuousDeployment versioning is not what we want as the final versioning scheme.
Build logs from teamcity has this error:
I tried to run the same command by hand:
With added
/verbosity debug
, but it didn't log anything additional...Here is the full log of that versioning step:
https://gist.github.com/jakubsuchybio/6bcc7bcc230c3a16e3cacfa29e993937
I don't know what to do here. I am pretty confident that this is a bug in GitVersion sw. Can you please try to fix this? When it showed at least 2-4times already?
If you need any additional info or some tests, just let me know.
Thanks Jacob :)
The text was updated successfully, but these errors were encountered: