-
Notifications
You must be signed in to change notification settings - Fork 663
Description
I am testing version 2.0.0 of GitVersion, the command line version in combination with a GitHubFlow repository. This repo has a master branch and a number of feature branches.
The latest tag (on master) is equal to 1.6.0.
When working with feature branches the following is the result, in this example a feature branch called 'feature-test' is used:
{
"Major":1,
"Minor":6,
"Patch":1,
"PreReleaseTag":"",
"PreReleaseTagWithDash":"",
"BuildMetaData":9,
"FullBuildMetaData":"9.Branch.feature-test.Sha.747cf43601b10dd87508ba7d72a47c0e9321294b",
"MajorMinorPatch":"1.6.1",
"SemVer":"1.6.1",
"LegacySemVer":"1.6.1",
"LegacySemVerPadded":"1.6.1",
"AssemblySemVer":"1.6.1.0",
"AssemblyFileSemVer":"1.6.1.0",
"FullSemVer":"1.6.1+9",
"InformationalVersion":"1.6.1+9.Branch.feature-test.Sha.747cf43601b10dd87508ba7d72a47c0e9321294b",
"ClassicVersion":"1.6.1.9",
"ClassicVersionWithTag":"1.6.1.9",
"BranchName":"feature-test",
"Sha":"747cf43601b10dd87508ba7d72a47c0e9321294b",
"NuGetVersionV2":"1.6.1",
"NuGetVersion":"1.6.1"
}
Is this expected behaviour?
Because this is a pre release I would have expect a pre release tag?
This is without a NextVersion.txt file, when I add one with a version equal to '1.7.0' the following is the result:
{
"Major":1,
"Minor":7,
"Patch":0,
"PreReleaseTag":"",
"PreReleaseTagWithDash":"",
"BuildMetaData":11,
"FullBuildMetaData":"11.Branch.feature-test.Sha.bf90ef4e6e000dd876f47fae510052ddfae8c23d",
"MajorMinorPatch":"1.7.0",
"SemVer":"1.7.0",
"LegacySemVer":"1.7.0",
"LegacySemVerPadded":"1.7.0",
"AssemblySemVer":"1.7.0.0",
"AssemblyFileSemVer":"1.7.0.0",
"FullSemVer":"1.7.0+11",
"InformationalVersion":"1.7.0+11.Branch.feature-test.Sha.bf90ef4e6e000dd876f47fae510052ddfae8c23d",
"ClassicVersion":"1.7.0.11",
"ClassicVersionWithTag":"1.7.0.11",
"BranchName":"feature-test",
"Sha":"bf90ef4e6e000dd876f47fae510052ddfae8c23d",
"NuGetVersionV2":"1.7.0",
"NuGetVersion":"1.7.0"
}
My plan is to use GitVersion in combination with TeamCity and Octopus Deploy. Each feature should be deployable to a testing environment and this means that I would need to be able to also package (NuGet) and deploy pre releases (features).
So, very curious to know if this is normal behaviour.