The problem:
Until two days ago the version generated by GitVersion worked correctly but now suddenly it rolled from 1.421 to 1.407.
My Environment:
Azure DevOps:
Multiple version of Azure DevOps build pipelines that build 10+ NuGet packages that use GitVersion MsBuild task with Mainline mode configured.
For my build pipelines versions I have the following structure: A version for Microsoft Hosted agent and a version of Self Hosted agent.
For each version I have the following pipelines:
- Restore, Build, Pack, Unit Test and Publish Symbols and to NuGet feed.
- Restore, Build, Pack, Publish
- Restore, Build, Unit Test
GitVersion 5.3.0
I have set it to increment the Minor number for each new commit into my master branch. Also worth to I don't use any other sources for calculating the version as this is the most comfortable approach for me and worked pretty nice until now.
GitVersion yml config:
next-version: 1.1
mode: Mainline
branches:
feature:
tag: alpha
increment: Inherit
master:
increment: Minor
tag: ''
ignore:
sha: []
merge-message-formats: {}
What I've tried to do:
- From reading the logs I noticed that Git Version outputs this message: "Skipping fetching, if GitVersion does not calculate your version as expected you might need to allow fetching or use dynamic repositories.", so i used dynamic repositories but the same result is generated.. :(
I don't know what else I should do to debug this.. I'm thinking is a problem with the GitVersion cache?
Thanks in advance.
1.407.
? Just a regular commit, or was it a merge? What else might have happened in the Git repository between version1.421.
and1.407.
? Any other merges that might have happened? Also, have you tried the latest version of GitVersion? – Asbjørn Ulsberg