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
486 stars 180 forks source link

Allow multiple release branches #217

Open levitin opened 4 years ago

levitin commented 4 years ago

Originally posted by @aleksandr-m in https://github.com/aleksandr-m/gitflow-maven-plugin/issues/23#issuecomment-253615136

Also it is relatively easy to add option to allow multiple release branches, but if support branch goal(s) will be added maybe it isn't needed. Wdyt?

I think it is a preety good idea to allow multiple release branches, controlled by an optional parameter:

@Parameter(property = "allowMultipleReleaseBranches", defaultValue = false)

However, it should be checked, whether a branch with the current release version already exists.

levitin commented 4 years ago

For example, if one release is tested sequentially by different departments on different testing stages, a new release should be able to be started until the previos one has actually gone live.

dagutten commented 1 year ago

Any update on this topic? quite interested in it

AlexRedby commented 1 year ago

I am interested in this feature too, because we are using multiple release in our project same as Jelin already mentioned in the issue #356. We have currently 2 projects being developed at same time, which are using same core. This core can be changed by both teams and, because its release time different, we have 2 release branches here (one for each actively developed project).

So my question is - can such feature be developed for this plugin? I don't see problem with this, if add parameter releaseBranch for goal release-finish, same as for hotfix/feature branches (hotfixBranch/featureBranch). As for release-start goal it can stay as it is but a release branches existence should be moved after this code and take branch name to check from here: https://github.com/aleksandr-m/gitflow-maven-plugin/blob/3327fb55f277882c0d89b9c6b7de440de1c08204/src/main/java/com/amashchenko/maven/plugin/gitflow/GitFlowReleaseStartMojo.java#L192-L198 If commitDevelopmentVersionAtStart parameter was used in release-start there won't be any problem with multiple releases this way.

If I missing something here please give me insight on this.

Alexey

chilber commented 1 year ago

Hi, we have implemented this in a fork, here's the pull request, maybe it also helps for your problem. https://github.com/aleksandr-m/gitflow-maven-plugin/pull/386 Carsten