aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
490 stars 182 forks source link

fromBranch parameter doesn't get support branch #298

Closed serbanmarcut3 closed 3 years ago

serbanmarcut3 commented 3 years ago

Here is the script line: sh './mvnw gitflow:hotfix-start -B -DfromBranch="support/test" -s $MAVEN_SETTINGS -DmvnExecutable=$(pwd)/mvnw -Dsurefire.useSystemClassLoader=false -Dgitflow.push.remote=true -Dgitflow.maven.argline="-s $MAVEN_SETTINGS -Dgitflow.push.remote=true"'

Here is the error: [ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.11.0:hotfix-start (default-cli) on project ***: The fromBranch is not production or support branch. -> [Help 1]

Here is the support branch created in Bitbucket: Screenshot 2021-05-12 at 23 50 37

It works with -DfromBranch="master" or without the parameter at all but it seems like support branches are not accepted.

aleksandr-m commented 3 years ago

@mserbi Have you changed supportBranchPrefix?

Also 1.11.0 is pretty old version.

aleksandr-m commented 3 years ago

@mserbi Ping

serbanmarcut3 commented 3 years ago

Hi @aleksandr-m, it was because of the version. The latest one worked, sorry for not replying earlier.