Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeRDark
titleExport 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
languagebash
themeRDark
titleTag 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
languagebash
themeRDark
titleCopy 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
languagebash
themeRDark
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
languagebash
themeRDark
titleFTP 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"

...

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
languagebash
themeRDark
titleUpload Release Artifacts
mvn deploy -Psign -pl '!:ozone-dist' -DskipTests -Dbuildhelper.skipAttach

...

Code Block
languagebash
themeRDark
titlePush the tag
git push origin "ozone-${VERSION}-$RC${RC}"

Vote

Send the voting mail to below mailing list

...

Code Block
languagebash
themeRDark
titleAdd final release tag
git checkout "ozone-${VERION}-$RC${RC}"

git tag -s "ozone-${VERION}" -m "Ozone $VERSION release"

git push "ozone-${VERION}"

...