[
https://issues.apache.org/jira/browse/ACCUMULO-4109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093190#comment-15093190
]
Christopher Tubbs commented on ACCUMULO-4109:
---------------------------------------------
For example, build.sh could:
# prompt for release candidate sequence number, {{n}}
# create a branch {{b-RCn-next}} from current branch, {{b}}
# switch to {{b-RCn-next}}
# run {{mvn clean release:clean release:prepare release:perform}}
# verify branch {{b}} is the same as {{HEAD~2}} and that {{HEAD}} and
{{HEAD~1}} contain "\[maven-release-plugin\]"
# create branch {{b-RCn}} to vote on, from {{HEAD~1}}
# delete tag matching {{HEAD~1}}
# verify origin matches {{https://git-wip-us.apache.org/repos/asf/accumulo}}
# push {{b-RCn}} (to vote on and make official signed tag from) and
{{b-RCn-next}} (to merge into {{b}} if vote passes to bump the version number)
It should handle failure cases (such as when {{release:perform}} fails after
the tag is created), to clean up any branches/tags, so they don't get
accidentally pushed.
> Make build.sh create branches
> -----------------------------
>
> Key: ACCUMULO-4109
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4109
> Project: Accumulo
> Issue Type: Task
> Components: build
> Reporter: Christopher Tubbs
> Assignee: Christopher Tubbs
> Fix For: 1.6.5, 1.7.1, 1.8.0
>
>
> To make generating release candidates even easier, the {{build.sh}} script
> could be improved to automatically create and push branches to vote on (and
> to delete the local rel/version tag so it doesn't accidentally get pushed).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)