Skip to content

When using mode: Mainline, the develop branch is set to mode: ContinuousDeployment #1355

@FamularoA

Description

@FamularoA

Hello,

I have to get an atomic version in each branch in Major.Minor.Patch without the patch tail.

System:
TFS 2017 Build, with Gitversion 4, Beta 12

With the current configuration I get for the develop branch following versions.
2.4.1-alpha0004
2.4.1-alpha0005
2.4.1-alpha0006

What I need is this, increment the Patch with each Pull-Request:
2.4.1-alpha0004
2.4.2-alpha0005
2.4.3-alpha0006

Pumping with +semver :patch do not the job.

This is my configuration:

assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
mode: Mainline
tag-prefix: '[vV]'
continuous-delivery-fallback-tag: ''
legacy-semver-padding: 4
build-metadata-padding: 4
commits-since-version-source-padding: 4
commit-message-incrementing: MergeMessageOnly
increment: Patch
branches:
master:
tag: ''
regex: master
increment: Patch
develop:
tag: alpha
regex: develop
increment: Patch
release:
tag: beta
regex: release?[/-]
increment: Patch
feature:
tag: feature
tag-number-pattern: '//'
regex: feature?[/-]
increment: Patch
hotfix:
tag: bug
regex: hotfix?[/-]
increment: Patch
bug:
tag: bug
tag-number-pattern: '//'
regex: bug?[/-]
increment: Patch
support:
tag: ''
regex: support[/-]
increment: Patch
ignore:
sha: []

The configuration shown with gitversion /showconfig is:

assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
mode: Mainline
tag-prefix: '[vV]'
continuous-delivery-fallback-tag: ''
major-version-bump-message: '+semver:\s?(breaking|major)'
minor-version-bump-message: '+semver:\s?(feature|minor)'
patch-version-bump-message: '+semver:\s?(fix|patch)'
no-bump-message: '+semver:\s?(none|skip)'
legacy-semver-padding: 4
build-metadata-padding: 4
commits-since-version-source-padding: 4
commit-message-incrementing: Enabled
branches:
master:
mode: Mainline
tag: ''
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: master
tracks-release-branches: false
is-release-branch: false
is-mainline: true
develop:
mode: ContinuousDeployment
tag: alpha
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: true
regex: develop
tracks-release-branches: true
is-release-branch: false
is-mainline: false
release:
mode: Mainline
tag: beta
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: release?[/-]
tracks-release-branches: false
is-release-branch: true
is-mainline: false
feature:
mode: Mainline
tag: feature
increment: Patch
prevent-increment-of-merged-branch-version: false
tag-number-pattern: '//'
track-merge-target: false
regex: feature?[/-]
tracks-release-branches: false
is-release-branch: false
is-mainline: false
hotfix:
mode: Mainline
tag: bug
increment: Patch
prevent-increment-of-merged-branch-version: false
track-merge-target: false
regex: hotfix?[/-]
tracks-release-branches: false
is-release-branch: false
is-mainline: false
bug:
mode: Mainline
tag: bug
increment: Patch
prevent-increment-of-merged-branch-version: false
tag-number-pattern: '//'
track-merge-target: false
regex: bug?[/-]
tracks-release-branches: false
is-release-branch: false
is-mainline: false
support:
mode: Mainline
tag: ''
increment: Patch
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: support[/-]
tracks-release-branches: false
is-release-branch: false
is-mainline: true
pull-request:
mode: Mainline
tag: PullRequest
increment: Inherit
prevent-increment-of-merged-branch-version: false
tag-number-pattern: '/-'
track-merge-target: false
regex: (pull|pull-requests|pr)[/-]
tracks-release-branches: false
is-release-branch: false
is-mainline: false
ignore:
sha: []
increment: Patch

Thank you,
Alexander

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions