From: David Galloway Date: Wed, 2 Oct 2019 17:20:02 +0000 (-0400) Subject: kernel: Report build status to shaman X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f1be596b564d59152b10ca3bbe080188c88df00d;p=ceph-build.git kernel: Report build status to shaman Signed-off-by: David Galloway --- diff --git a/kernel/build/build_deb b/kernel/build/build_deb index 3d86fa14..59a9d633 100644 --- a/kernel/build/build_deb +++ b/kernel/build/build_deb @@ -121,3 +121,6 @@ EOF echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint} fi + +# update shaman with the completed build status +update_build_status "completed" "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $ARCH diff --git a/kernel/build/build_rpm b/kernel/build/build_rpm index 2f8df569..0699c9d3 100644 --- a/kernel/build/build_rpm +++ b/kernel/build/build_rpm @@ -104,3 +104,6 @@ EOF echo Check the status of the repo at: https://shaman.ceph.com/api/repos/${chacra_endpoint} fi + +# update shaman with the completed build status +update_build_status "completed" "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $ARCH diff --git a/kernel/build/setup b/kernel/build/setup index c3dc1c62..98720685 100644 --- a/kernel/build/setup +++ b/kernel/build/setup @@ -33,12 +33,22 @@ if test -f /etc/redhat-release ; then $SUDO yum install -y redhat-lsb-core $SUDO yum install -y elfutils-libelf-devel # for ORC unwinder $SUDO yum install -y flex bison # for Kconfig + + # Set vars for shaman status updating + get_rpm_dist + NORMAL_DISTRO=$DISTRO + NORMAL_DISTRO_VERSION=$DISTRO_VERSION fi if which apt-get > /dev/null ; then $SUDO apt-get install -y lsb-release $SUDO apt-get install -y libelf-dev # for ORC unwinder $SUDO apt-get install -y flex bison # for Kconfig + + # Set vars for shaman status updating + DISTRO=$(lsb_release -si) + NORMAL_DISTRO=${DISTRO,,} + NORMAL_DISTRO_VERSION=$AVAILABLE_DIST fi case $(lsb_release -si) in @@ -71,3 +81,6 @@ cd "$WORKSPACE" # Clean the git repo git clean -fxd + +# create build status in shaman +create_build_status "started" "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $ARCH