jgitver / jgitver-maven-plugin

maven core extension to automatically define versions using jgitver & git tags
https://jgitver.github.io/
Other
159 stars 42 forks source link

Question: Release & hotfix branches #144

Open cubasuarez opened 3 years ago

cubasuarez commented 3 years ago

Before submitting an issue I have first:

(if you have performed all the above, remove the paragraph and continue describing the issue with template below)

Issue

We know that your time is precious, we are thankful that you take time to report us an issue, to make it easier for you please use the following prefilled paragraphs

version: 1.5.1 usage context:

Problem description: Configuration:

<configuration xmlns="http://jgitver.github.io/maven/configuration/1.1.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://jgitver.github.io/maven/configuration/1.1.0 https://jgitver.github.io/maven/configuration/jgitver-configuration-v1_1_0.xsd">
    <strategy>MAVEN</strategy>
    <useDirty>true</useDirty>
    <useGitCommitId>true</useGitCommitId>
</configuration>

How do I change my configuration so that artefacts in release & hotfix branches (for example denounced by release/x.y.z and hotfix/x.y.z+n are built without -SNAPSHOT and branch in artefact name?

Background: Manual/external testing after artefact creation and need to promote an immutable artefact to production through test-environments. - e.g I don't have the luxury to test in release branch and then (ff) merge to master and then rebuild the artefact.

Or am I missing something?

fjakop commented 3 years ago

I have the same issue, tried setting

<nonQualifierBranches>master,releases/*</nonQualifierBranches>
<nonQualifierBranches>master,releases/</nonQualifierBranches>

does not work, there's always a qualifier when I try to build an annotated tag un a branch starting with release/, e.g. release/1.4