-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goal hotfix-finish runs post hotfix goals on wrong branch #402
Comments
What I see happening in the build server log is following:
The last section is executing from the master branch, which is unexpected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The goal
hotfix-finish
runs the post hofix goals on the wrong branch, if the optionskipReleaseMergeProdBranch
is set totrue
.After some digging around I noticed that in
GitFlowHotFixFinishMojo
on line 261 there is the checkif (skipMergeProdBranch && (supportBranchName == null))
, if both conditions are true then it switches to the production branch. However, on line 267 it checks if it should run the post hotfix goals, which is just below the mentioned check.If my understanding is correct, the finish goals runs the post hotfix goals on the hotfix only if there is a support branch or if
skipMergeProdBranch
isfalse
. I expected that the post goals would execute from:skipMergeProdBranch
istrue
.I just want to check if my understanding is correct or that I'm missing something here, before I create a pull-request (the change is rather simple move switching to the production after running the post hotfix goals).
I ran into the problem after moving to your gitflow plugin from the Atlassian one (jgitflow), which is no longer maintained.
The text was updated successfully, but these errors were encountered: