Replies: 1 comment
-
Hi there. I'm moving this to the discussion section because this is probably a configuration issue. We have docent of integrations tests which ensures your scenario: MainlineScenariosWithAGitHubFlow:
If you are missing some tests please feel free and extend the integration tests. Cheers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Prerequisites
GitVersion package
AzureDevops task
GitVersion version
6.3.0
Operating system
Windows
What are you seeing?
When we upgraded to the new
task: gitversion/execute@3
we started seeing unexpected behavior with versioning.Mainly the two issues we found were
What is expected?
It was expected that the SemVer and other versioning variables set by the gitversion/execute@3 are controlled and directly representing what is set by the developer with +semver: in the commit .
Steps to Reproduce
azure-pipelines.yml
GitVersion.yml
The above described behavior is seen only on some merge types .
In Azure DevOps there are 4 merge types settings available.
Example :
Using Basic merge Main is on 1.0.0 . A commit is made with +semver: Major . The new build is versioned with 2.0.0
Using Squash merge Main is on 1.0.0 . A commit is made with +semver: Major . The new build is versioned with 1.0.1
Using Basic merge Main is on 1.0.0 . A commit is made with +semver: Minor. The new build is versioned with 1.1.0
Using Squash merge Main is on 1.0.0 . A commit is made with +semver: Minor. The new build is versioned with 1.0.1
Using Basic merge Main is on 1.0.0 . A commit is made with +semver: Patch. The new build is versioned with 1.0.1
Using Squash merge Main is on 1.0.0 . A commit is made with +semver: Patch. The new build is versioned with 1.0.1
Using Basic merge Release/branch is on 1.0.0 . A commit is made with +semver: Major . The new build is versioned with 2.0.0
Using Squash merge Release/branch is on 1.0.0 . A commit is made with +semver: Major . The new build is versioned with 1.1.0
Using Basic merge Release/branch is on 1.0.0 . A commit is made with +semver: Minor. The new build is versioned with 1.1.0
Using Squash merge Release/branch is on 1.0.0 . A commit is made with +semver: Minor. The new build is versioned with 1.1.0
Using Basic merge Release/branch is on 1.0.0 . A commit is made with +semver: Patch. The new build is versioned with 1.0.1
Using Squash merge Release/branch is on 1.0.0 . A commit is made with +semver: Patch. The new build is versioned with 1.1.0
RepositoryFixture Test
No response
Output log or link to your CI build (if appropriate).
Beta Was this translation helpful? Give feedback.
All reactions