Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Prerequisites
- Discuss
- Prepare
- Tag Branch Point and Branch
- Clone & Checkout Branch
- Update version numbers on master branch (from A.B.C-SNAPSHOT to D.E.F-SNAPSHOT) and push changes
- Update version numbers on release branch (from A.B.C-SNAPSHOT to A.B.C) and push changes
- Create a new Jenkins job to build the release
- Update site
- Create version in JIRA for release X.Y.
- Send announcements to the user and developer lists.
- Trademarks
- License
- Privacy Policy
Prerequisites
Before entering into this process you need to ensure you will be able to cryptographically sign the final result in such a way that others can validate the signature. This can be a confusing process. Here are links to several documents that should help.
- http://www.apache.org/dev/openpgp.html
- http://www.apache.org/dev/release-signing.html
- http://httpd.apache.org/dev/verification.html
Discuss
Send a [DISCUSS] email to the dev@knox list proposing a release.
Prepare
In preparation for each release there are a number of sub-steps required to ensure that that the project's repository is in a suitable state for branching.
Update CHANGES
Update CHANGES.txt with release date (Release X.Y - MM/dd/yyyy) and (if needed) add additional changelog entries.
The CHANGES file can be found in gateway-release/home
Update documentation
Build, Test and Push Changes
git pull git commit --all --message "Prepare for branch." ant verify git push
Tag Branch Point and Branch
git tag --annotate v{X.Y.Z}-branch --message "Branch point for v{X.Y.Z}" git push origin --tags git checkout -b v{X.Y.Z} git push --set-upstream origin v{X.Y.Z}
Clone & Checkout Branch
git clone https://git-wip-us.apache.org/repos/asf/incubator-knox.git knox-{X.Y.Z} cd knox-{X.Y.Z} git checkout -t origin/v{X.Y.Z}
Update version numbers on master branch (from A.B.C-SNAPSHOT to D.E.F-SNAPSHOT) and push changes
Update version numbers on release branch (from A.B.C-SNAPSHOT to A.B.C) and push changes
git pull git commit --all --message "Prepare for branch." ant verify git push
Create a new Jenkins job to build the release
mvn -Prelease clean install
ant post-build
Download the release
ant download-release h2. Sanity Test Do some basic manual testing to see if release looks ok. For example do and install and run through a few of the samples. h1. Sign
ant sign-release
h1. Verify Signatures Verify the hashes and signatures. First change into the distribution directory.
cd release
Verify the signatures for both the source and binary distribution. _Note: This assumes that gpg is installed._
gpg -verify knox
src.zip.asc knox
-src.zip
gpg -verify knox
.zip.asc knox-
.zip
Verify the SHA-1 hashes for both the source and binary distribution. _Note: This assumes a Linux or MacOS environment with openssl installed._
cat knox-
src.zip.sha && openssl sha1 knox
-src.zip
cat knox-
.zip.sha && openssl sha1 knox-
.zip
Verify the MD5 digest for both the source and binary distribution. _Note: This assumes a Linux or MacOS environment with openssl installed._
cat knox-
src.zip.md5 && openssl md5 knox
-src.zip
cat knox-
.zip.md5 && openssl md5 knox-
.zip
h1. Tag Release Candidate
git tag --annotate vX.Y.Z-rcN --message "vX.Y.Z release candidate N"
git push origin --tags
h1. Stage Follow the instructions output by the sign step above. Basically execute this command.
ant stage-release
h1. Community reviews the RC h1. Vote Send a \[VOTE\] email to the dev@knox list. A template was output by the sign step above as {{target/vote.eml}}.
From:
To: dev@knox.incubator.apache.org
Subject: [VOTE] Release Apache Knox (Incubator)
A candidate for the Apache Knox (Incubator)
release is available at:
/knox/
/
The release candidate is a zip archive of the sources in:
https://git-wip-us.apache.org/repos/asf/incubator-knox.git
Branch
The SHA1 checksum of the archive is
.
Please vote on releasing this package as Apache Knox (Incubator)
.
The vote is open for the next 72 hours and passes if a majority of at
least three +1 Apache Knox (Incubator) PMC votes are cast.
[ ] +1 Release this package as Apache Knox (Incubator)
[ ] -1 Do not release this package because...
h2. Iterate based on feedback until vote passes 15. Once vote passes, tag the release: h2. Publish
ant publish-release
17. Wait 24 hours for release to propagate to mirrors.
Update site
4. Update news in src/site/src/documentation/content/xdocs/index.xml and for main lucene.apache.org site stored at https://svn.apache.org/repos/asf/lucene/site/. The second change may require additional rights
Create version in JIRA for release X.Y.
Send announcements to the user and developer lists.
2. Update CHANGES with header for new changes
Trademarks
Apache Knox Gateway, Apache, the Apache feather logo and the Apache Knox Gateway project logos are trademarks of The Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their respective owners.
License
Apache Knox uses the standard Apache license.
Privacy Policy
Apache Knox uses the standard Apache privacy policy.