Merge "Adjust build script to not use rev-parse"

This commit is contained in:
Jenkins 2015-12-08 21:39:54 +00:00 committed by Gerrit Code Review
commit e595595163

View File

@ -26,7 +26,9 @@ ASTARA_DEBIAN_RELEASE=${ASTARA_DEBIAN_RELEASE:-"jessie"}
BASE_ELEMENTS="vm debian astara nginx" BASE_ELEMENTS="vm debian astara nginx"
EXTRA_ELEMENTS="$@" EXTRA_ELEMENTS="$@"
GIT_HEAD="$(cd $SRC_ROOT && git rev-parse HEAD^)" GIT_HEAD="$(cd $SRC_ROOT && git log | head -n1 | awk '{ print $2 }')"
echo "Building astara-appliance from $GIT_HEAD"
DIB_REPOLOCATION_astara=$SRC_ROOT \ DIB_REPOLOCATION_astara=$SRC_ROOT \
DIB_REPOREF_astara=$GIT_HEAD \ DIB_REPOREF_astara=$GIT_HEAD \