THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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 apache-ambari-X.Y.Z-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-X.Y.Z/ambari-web/public apache-ambari-X.Y.Z-src/ambari-web/public-static
# make sure apache rat tool runs successfully
cp -R apache-ambari-X.Y.Z-src apache-ambari-X.Y.Z-ratcheck
cd apache-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 --exclude=.gitignore --exclude=.gitattributes -zcvf apache-ambari-X.Y.Z-src.tar.gz apache-ambari-X.Y.Z-src |
...