Versions Compared

Key

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

...

Code Block
git checkout branch-x.y.z

Make sure it passes the apache rat tool.

Code Block
mvn clean apache-rat:check

Create a Release Tag from the release branch

Code Block
git tag -a release-x.y.z-rc0 -m 'Ambari x.y.z RC0'
git push --tags origin

...

Code Block
 # create a clean copy of the source
 cd ambari-git-x.y.z
 git clean -f -x -d
 cd ..
 cp -R ambari-git-x.y.z ambari-x.y.z
 
 # create ambari-web/public by running the build instructions per https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development
 # once ambari-web/public is created, copy it as ambari-web/public-static
 cp -R ambari-git-x.y.z/ambari-web/public ambari-x.y.z/ambari-web/public-static
 
 # make sure apache rat tool runs successfully
 cp -R ambari-x.y.z ambari-x.y.z-ratcheck
 cd ambari-x.y.z-ratcheck
 mvn clean apache-rat:check
 cd ..
 # if rat check fails, file JIRAs and fix them before proceeding.
 
 # tar it up, but exclude git artifacts
 tar --exclude=.git -zcvf ambari-x.y.z.tar.gz ambari-x.y.z

Sign the tarball

Code Block
gpg2  --armor --output ambari-{release_number}.tar.gz.asc --detach-sig ambari-{release_number}.tar.gz

...