From 8f1b0d31f4465fc53a00a29f46eb99d7df9dfe1a Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 28 Sep 2016 15:06:58 -0400 Subject: [PATCH] ceph-dev-build: post build status on deb builds Signed-off-by: Alfredo Deza --- ceph-dev-build/build/build_deb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ceph-dev-build/build/build_deb b/ceph-dev-build/build/build_deb index 3803ad5e..42a28288 100644 --- a/ceph-dev-build/build/build_deb +++ b/ceph-dev-build/build/build_deb @@ -67,6 +67,14 @@ gen_debian_version() { bpvers=`gen_debian_version $debian_version $DIST` +# Normalize variables across rpm/deb builds +NORMAL_DISTRO=$distro +NORMAL_DISTRO_VERSION=$DIST +NORMAL_ARCH=$ARCH + +# create build status in shaman +create_build_status "started" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH + # look for a specific package to tell if we can avoid the build chacra_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}/${ARCH}/flavors/${FLAVOR}" chacra_repo_endpoint="ceph/${chacra_ref}/${SHA1}/${distro}/${DIST}/flavors/${FLAVOR}" @@ -194,3 +202,6 @@ EOF echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_repo_endpoint}/ fi + +# update shaman with the completed build status +update_build_status "completed" "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH -- 2.39.5