Skip to content

Version with branch name if not on master #466

Open
@torsten-github

Description

@torsten-github

Describe your idea

A proeprty which displays the feature branch name. It's empty if on master. A leading dash is needed to use it as postfix.

Expected Behavior

Default Release is mostly: artifact-v1.0.0
Release on feature branch is now: artifact-v1.0.0-7
Better would be: artifact-v1.0.0-7-my-new-featuer

<version>${artifact-id}-${git.commit.id.describe-short}${git.feature.dashed}</version>

Additional context

Please also have a look at this tool, doing the same in the MS world:
https://gitversion.net/docs/more-info/variables

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions