From: Andrew Schoen Date: Tue, 18 Oct 2016 19:37:49 +0000 (-0500) Subject: ceph-build: send failure status to shaman on build failure X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e24a54b001d4b414ec958a0abd03a3d61ca1e58d;p=ceph-build.git ceph-build: send failure status to shaman on build failure Signed-off-by: Andrew Schoen --- diff --git a/ceph-build/build/failure b/ceph-build/build/failure new file mode 100644 index 00000000..6274d32e --- /dev/null +++ b/ceph-build/build/failure @@ -0,0 +1,9 @@ +#!/bin/bash -ex + +# note: the failed_build_status call relies on normalized variable names that +# are infered by the builds themselves. If the build fails before these are +# set, they will be posted with empty values +BRANCH=`branch_slash_filter $BRANCH` + +# update shaman with the failed build status +failed_build_status "ceph" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH diff --git a/ceph-build/config/definitions/ceph-build.yml b/ceph-build/config/definitions/ceph-build.yml index d9bebfd7..b296752c 100644 --- a/ceph-build/config/definitions/ceph-build.yml +++ b/ceph-build/config/definitions/ceph-build.yml @@ -72,6 +72,18 @@ - ../../build/setup - ../../build/build_rpm + publishers: + - postbuildscript: + script-only-if-failed: True + script-only-if-succeeded: False + builders: + - inject: + properties-file: ${WORKSPACE}/build_info + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/failure + wrappers: - inject-passwords: global: true