Closed puce77 closed 3 years ago
I also asked a related question on StackOverflow: https://stackoverflow.com/questions/65550854/git-flow-maven-plugin-hotfix-branch
Might be a duplicate of #257 and/or #219, but if yes, I still don't know what to change
What is the format of hotfixVersion
?
I used for both hotfix-start
and hotfix-finish
: -DhotfixVersion=3.4.0
But I've seen some samples where users don't use the parameter for hotfix-start
, and in hotfix-finish
they use something like:
-DhotfixVersion=support/1.11.0/1.11.1
@puce77 Use -DhotfixVersion=support/release-3.x/3.4.0
.
@aleksandr-m thanks, this worked. I couldn't find any documentation about this though. Please consider to update the documentation.
@puce77 PR-s to improve documentation are welcome!
When I execute the following command (via Jenkinsfile):
mvn -e -B -Dmaven.test.failure.ignore=true -DperformRelease=true gitflow:hotfix-start -DfromBranch=support/release-3.x -DhotfixVersion=3.4.0
This results in the following output:
As you can see, the plugin creates for some reason the branch hotfix/support/release-3.x/3.4.0 instead of hotfix/3.4.0.
Afterwards when I execute the following command:
mvn -e -B -Dmaven.test.failure.ignore=true -DperformRelease=true gitflow:hotfix-finish -DhotfixVersion=3.4.0 -DpostHotfixGoals="deploy -e -B -Dmaven.test.failure.ignore=true -DperformRelease=true -Dverbose=true"
I get the following error message:
So in particular:
Hotfix branch with name 'hotfix/3.4.0' doesn't exist. Cannot finish hotfix.
I was under the impression whis used to work, but currently it fails for version 1.14.0 as well as for 1.15.0
It looks like a bug to me, but maybe I have to configure something differently?