git checkout develop
git pull
start the release branch off develop (assuming we have a current version of '1.0.0-SNAPSHOT');
git flow release start 1.0.0
in the code, update your version to '1.0.0', and commit your changes:
git commit -am 'bumping version'
do any other changes you need to and finish the release:
git flow release finish 1.0.0
this will merge the release (and so develop) branch into master and the bump change into develop.
it will also tag the release as 1.0.0.
NOTHING has been pushed to remote yet, so remember to do the following:
git checkout master && git push
git checkout develop && git push
git push --tags
TODO: have two jenkins jobs:
- one which builds from master and pushes to artifactories release path
- another which builds from develop and pushes to artifactories snapshot path