...
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Export Vars |
---|
|
export VERSION=1.1.0 # Set to the version of ozone being released.
export RELEASE_DIR=~/ozone-release/ # ozone-release needs to be created
export CODESIGNINGKEY=<your_gpg_key_id>
export RC=RC00 # Set to the number of the current release candidate, starting at 0. |
...
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Tag the Release |
---|
|
git tag -s "ozone-${VERSION}-$RC${RC}" |
If the command fails on MacOS, you may need to do the following additional steps:
...
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Copy to Release Directory |
---|
|
cp hadoop-ozone/dist/target/ozone-*.tar.gz "$RELEASE_DIR"/
cd "$RELEASE_DIR" |
Calculate the checksum and sign the artifacts
Code Block |
---|
|
cd "$RELEASE_DIR"
for i in $(ls -1 *.tar.gz); do gpg -u "$CODESIGNINGKEY" --armor --output "${i}.asc" --detach-sig "$i"; done
for i in $(ls -1 *.tar.gz); do sha512sum "$i" > "${i}.sha512"; done
for i in $(ls -1 *.tar.gz); do gpg --print-mds "$i" > "${i}.mds"; done |
...
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | FTP to the apache serverUpload artifacts to staging |
---|
|
svn mkdir https://dist.apache.org/repos/dist/dev/ozone/"${VERSION}-$rc${RC}"
svn co https://dist.apache.org/repos/dist/dev/ozone/"${VERSION}-rc${RC}"
cp "$RELEASE_DIR"/* "${VERSION}-rc${RC}"
cd "${VERSION}-$rc${RC}"
svn add *
svn commit -m "Ozone $VERSION $RCRC$RC" |
- Check the results using your browser by connecting to https://dist.apache.org/repos/dist/dev/ozone/
...
Code Block |
---|
<settings>
<servers>
<server>
<id>apache.snapshots.https</id>
<username>your_apache_id</username>
<password>your_apache_password</password>
</server>
<!-- To stage a release of some part of Maven -->
<server>
<id>apache.staging.https</id>
<username>your_apache_id</username>
<password>your_apache_password</password>
</server>
</servers>
</settings> |
Do a maven deploy from the ozone and hdds projectsReturn to your Ozone repository being used for the release, and run the following command:
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Upload Release Artifacts |
---|
|
mvn deploy -Psign -pl '!:ozone-dist' -DskipTests -Dbuildhelper.skipAttach |
...
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Push the tag |
---|
|
git push origin "ozone-${VERSION}-$RC${RC}" |
Vote
Send the voting mail to below mailing list
...
Code Block |
---|
language | bash |
---|
theme | RDark |
---|
title | Add final release tag |
---|
|
git checkout "ozone-${VERION}-$RC${RC}"
git tag -s "ozone-${VERION}" -m "Ozone $VERSION release"
git push "ozone-${VERION}" |
...