Remove origin/ and replace '/' in branch names in tar file

This commit is contained in:
Calen Pennington
2012-03-19 13:11:06 -04:00
parent 7541737c15
commit ca50fe027e

View File

@@ -9,6 +9,8 @@ if [ -z "${GIT_BRANCH}" ]; then
GIT_BRANCH=${GIT_BRANCH##refs/heads/}
GIT_BRANCH=${GIT_BRANCH:-HEAD}
fi
GIT_BRANCH=${GIT_BRANCH##origin/}
GIT_BRANCH=${GIT_BRANCH//\//_}
if [ -z "${BUILD_NUMBER}" ]; then
BUILD_NUMBER=dev