THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
git checkout branch-xX.yY.zZ |
Create a Release Tag from the release branch
Code Block |
---|
git tag -a release-xX.yY.zZ-rc0 -m 'Ambari xX.yY.zZ RC0' git push origin release-xX.yY.zZ-rc0 |
Create a tarball
Code Block |
---|
# create a clean copy of the source cd ambari-git-xX.yY.zZ git clean -f -x -d cd .. cp -R ambari-git-xX.yY.zZ apache-ambari-xX.yY.zZ-src # 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-xX.yY.zZ/ambari-web/public apache-ambari-xX.yY.zZ-src/ambari-web/public-static # make sure apache rat tool runs successfully cp -R apache-ambari-xX.yY.zZ-src apache-ambari-xX.yY.zZ-ratcheck cd apache-ambari-xX.yY.zZ-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 apache-ambari-xX.yY.zZ-src.tar.gz apache-ambari-xX.yY.zZ-src |
Sign the tarball
Code Block |
---|
gpg2 --armor --output apache-ambari-{release_number}X.Y.Z-src.tar.gz.asc --detach-sig apache-ambari-{release_number}-X.Y.Z-src.tar.gz |
Generate MD5 checksums:
Code Block |
---|
md5sum apache-ambari-X.Y.Z-src.tar.gz > apache-ambari-X.Y.Z-src.tar.gz.md5 sha1sum apache-ambari-X.Y.Z-src.tar.gz > apache-ambari-X.Y.Z-src.tar.gz.shasha1 |
or
Code Block |
---|
openssl md5 apache-ambari-X.Y.Z-src.tar.gz > apache-ambari-X.Y.Z-src.tar.gz.md5 openssl sha1 apache-ambari-X.Y.Z-src.tar.gz > apache-ambari-X.Y.Z-src.tar.gz.shasha1 |
Upload the artifacts to your apache home:
...