From: Zack Cerza Date: Tue, 27 Jun 2017 16:21:25 +0000 (-0600) Subject: Set BRANCH X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F766%2Fhead;p=ceph-build.git Set BRANCH Signed-off-by: Zack Cerza --- diff --git a/cephmetrics/build/build_rpm b/cephmetrics/build/build_rpm index 154fb3c8..31070fc8 100644 --- a/cephmetrics/build/build_rpm +++ b/cephmetrics/build/build_rpm @@ -4,6 +4,8 @@ set -ex # Sanity-check: [ -z "$GIT_BRANCH" ] && echo Missing GIT_BRANCH variable && exit 1 +BRANCH=`branch_slash_filter $GIT_BRANCH` + # Only do actual work when we are an RPM distro if test "$DISTRO" != "fedora" -a "$DISTRO" != "centos" -a "$DISTRO" != "rhel"; then exit 0