...
Code Block |
---|
git fetch origin --prune git checkout developmaster git pull |
Note |
---|
Please remember to keep BOM subproject in sync - |
Create a release branch
Code Block |
---|
git flow release start X.X.X.X
git flow release publish X.X.X.X |
...
The latest Maven version handles this case very well but it's worth checking if the bits are in sync. |
Prepare release
Tag the release by using the "release:prepare" goal of Maven:
...
Code Block |
---|
mvn release:perform -DretryFailedDeploymentCount=10
|
Follow the link to get more information about performed operation by release plugin. After this step the artifacts will be hosted by Nexus. The -DretryFailedDeploymentCount=10
is needed when there are problems with network connection (used just in case).
If you need to run perform again, (or in a different box), do:
...
To simplify testing, the assemblies have to be moved to the https:
/
www/
peopledist.apache.org/repos/
buildsdist/dev/struts/
$VERSION
dir.
After closing repository in Nexus, check if the release files are available from staging repository as bellow:
...
Send a short e-mail to dev@struts.a.o informing about the new packages and to give people enough time to test the distribution (actual bits). Wait around a week before posting Vote. If no show-stoppers reported, start a vote thread for build quality designation.
Clean up repository
It doesn't matter if the bits will be accepted or not, development continues Switch to
release/X.X.X.X
branch and execute the below command:
Code Block |
---|
git flow release finish -n X.X.X.X |
-n
option is need to avoid tagging the release, the Maven Release plugin did that already. If the release branch was published to the remote it won't be deleted locally, it must be done manually after removing branch from the remote:
Code Block |
---|
git push --delete origin release/X.X.X.X |
This will remove the branch from the remote, now we can merge once more the release branch (when on develop
) and remove it
Code Block |
---|
git merge --no-ff release/X.X.X.X
git branch -d release/X.X.X.X |
Now both master
and develop
branches should be up to date with the changes introduced by the release.
Push changes
Do not forget to push your local changes to the Apache repo
Code Block |
---|
git push |
Note |
Do not remove the tag! It clearly indicates what was planned and it can be used as a history marker. Always used the next version number, do not redeploy the same version as it breaks Maven's policy and you will have to manually clean up Maven repository. |
Vote on it
Post a release/quality vote to the dev list (and only the dev list). The example mail is on Sample announcements page.
If the vote result is for an ASF release (i.e. not test build), update site, announce. If the vote result is for GA, push to central.
...
Wait 24 hours before proceeding.
Update site
Make sure you have linked your Apache and Github account in Apache GitBox (Dual Master Git alowing you to directly push to GitHub), see https://gitbox.apache.org/setup/
Check out site src code
Code Block svngit coclone https://svngithub.com/apache.org/repos/asf/struts/site/ -site.git
or use SSH instead:
Code Block git clone git@github.com:apache/struts-site .git
- If a new DTD was defined, add it to
source/dtds
- Update current version and release date in
struts-site/_config.yml
- Update page source files
- struts-site/source/announce.md (if applicable, refer also to corresponding security bulletin)
- struts-site/source/downloads.html (Prior Releases section)
- struts-site/source/index.html (some parts will updated automatically with values defined in
_config.yml
)
- Generate site with Docker Jekyll image
jekyll build
- you must have Docker installed and running
- if you are doing this the first time, download the official Struts image to build the site from https://hub.docker.com/r/theapachestruts/struts-site-jekyll/
- start
docker-machine
- now you can use one of the bash scripts already provided in the
struts-site
:docker-run.sh
- used with Bashdocker-run.fish
- to use with Fish Shell (viafish docker-run.fish
)
- now with
jekyll serve -w
you can check the generated site at http://localhost:4000
Commit the changes and the generated content
...
We leave this as the last step, once the artifacts have had time to sync up on the mirrors. Target it to: user@struts.a.o and announcements@struts, announcements@struts.a.o and announce@a.o, samples are available at Sample announcements page