Use convention to derive a SemVer product version from a GitFlow based repository
arturcic on 5.3.6
Hi all,
I've been using the gitversion/execute@0 task for the last year which has been working fine. All of a sudden today it's failing with the error
I can't for the life of me think of anything that's changed our end and wondering if it's potentially a connection issue. Has anyone else encountered this recently ?
support/
have in the gitversion universe? It is mentioned several times in the docs but the meaning of the branches are never really explained.
develop
is a protected branch we can't push the resolved conflicts there directly.
I am not sure I follow. What branch protection rule would prevent a resolved merge conflict from being pushed?
To answer your question though… as long as you don’t include a version number (which could throw GitVersion off) in the branch name, it shouldn’t matter what you call this intermediate branch.
Is it possible to have more control over the formatting of the "assembly-informational-format" setting when using GitVersion.yml and the MSBuild task?
1) For example, I would like to left pad an environment variable so it is prefixed with zeros to be 6 digits.
2) I would also like to allow spaces instead of requiring dashes (for legacy reasons even though this may not meet the spec)
I'm currently using this value:assembly-informational-format: '{Major}.{Minor}.{env:BUILD_BUILDNUMBER ?? 000001}+{ShortSha} {BranchName} {env:SYSTEM_DEBUG ?? DEBUG}'
And the output current is:2022.8.5372+0a34655-QA-DEBUG
What I want is:2022.08.005372+0a34655 QA DEBUG
Thanks for any assistance!
branches.regex: ^dev$
would override that but doesn't seem to work. A bit of clarity on how this would work (overriding the default branch) would be most helpful
Hi all, does anyone knows why if i run gitversion on my local i get
{
"Major": 1,
"Minor": 0,
"Patch": 3,
"PreReleaseTag": "",
"PreReleaseTagWithDash": "",
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": null,
"WeightedPreReleaseNumber": 60000,
"BuildMetaData": 5,
"BuildMetaDataPadded": "0005",
"FullBuildMetaData": "5.Branch.master.Sha.0712903090e3c46321b2648b694a1ca5f2c7ca63",
"MajorMinorPatch": "1.0.3",
"SemVer": "1.0.3",
"LegacySemVer": "1.0.3",
"LegacySemVerPadded": "1.0.3",
"AssemblySemVer": "1.0.3.0",
"AssemblySemFileVer": "1.0.3.0",
"FullSemVer": "1.0.3+5",
"InformationalVersion": "1.0.3+5.Branch.master.Sha.0712903090e3c46321b2648b694a1ca5f2c7ca63",
"BranchName": "master",
"EscapedBranchName": "master",
"Sha": "0712903090e3c46321b2648b694a1ca5f2c7ca63",
"ShortSha": "0712903",
"NuGetVersionV2": "1.0.3",
"NuGetVersion": "1.0.3",
"NuGetPreReleaseTagV2": "",
"NuGetPreReleaseTag": "",
"VersionSourceSha": "112ece8dc679ae30d5d4a8016219d34224598ab7",
"CommitsSinceVersionSource": 5,
"CommitsSinceVersionSourcePadded": "0005",
"UncommittedChanges": 0,
"CommitDate": "2022-05-04"
}
but running from the CI i get
{
"Major": 1,
"Minor": 0,
"Patch": 1,
"PreReleaseTag": "",
"PreReleaseTagWithDash": "",
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": null,
"WeightedPreReleaseNumber": 60000,
"BuildMetaData": 8,
"BuildMetaDataPadded": "0008",
"FullBuildMetaData": "8.Branch.master.Sha.0712903090e3c46321b2648b694a1ca5f2c7ca63",
"MajorMinorPatch": "1.0.1",
"SemVer": "1.0.1",
"LegacySemVer": "1.0.1",
"LegacySemVerPadded": "1.0.1",
"AssemblySemVer": "1.0.1.0",
"AssemblySemFileVer": "1.0.1.0",
"FullSemVer": "1.0.1+8",
"InformationalVersion": "1.0.1+8.Branch.master.Sha.0712903090e3c46321b2648b694a1ca5f2c7ca63",
"BranchName": "master",
"EscapedBranchName": "master",
"Sha": "0712903090e3c46321b2648b694a1ca5f2c7ca63",
"ShortSha": "0712903",
"NuGetVersionV2": "1.0.1",
"NuGetVersion": "1.0.1",
"NuGetPreReleaseTagV2": "",
"NuGetPreReleaseTag": "",
"VersionSourceSha": "eb8fe45f4264863ef03af627f0fcc805a856b603",
"CommitsSinceVersionSource": 8,
"CommitsSinceVersionSourcePadded": "0008",
"UncommittedChanges": 0,
"CommitDate": "2022-05-04"
}
on same commit