From: Alfredo Deza Date: Wed, 28 Sep 2016 19:07:11 +0000 (-0400) Subject: ceph-dev-build: post build status on rpm builds X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=853dbbc40887642468149e6c5cd140b4deb77151;p=ceph-build.git ceph-dev-build: post build status on rpm builds Signed-off-by: Alfredo Deza --- diff --git a/ceph-dev-build/build/build_rpm b/ceph-dev-build/build/build_rpm index 9c19708d..8be37435 100644 --- a/ceph-dev-build/build/build_rpm +++ b/ceph-dev-build/build/build_rpm @@ -56,6 +56,15 @@ get_rpm_dist() { } get_rpm_dist + +# Normalize variables across rpm/deb builds +NORMAL_DISTRO=$DISTRO +NORMAL_DISTRO_VERSION=$RELEASE +NORMAL_ARCH=$ARCH + +# create build status in shaman +create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH + dist=$DIST [ -z "$dist" ] && echo no dist && exit 1 echo dist $dist @@ -261,3 +270,6 @@ EOF echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint}/flavors/${FLAVOR}/ fi + +# update shaman with the completed build status +update_build_status "completed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH