From: Andrew Schoen Date: Tue, 18 Oct 2016 19:27:10 +0000 (-0500) Subject: ceph-setup: report to shaman on build failure X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=31426d5a8c23c1702b875b72a72f32db7564b740;p=ceph-build.git ceph-setup: report to shaman on build failure Signed-off-by: Andrew Schoen --- diff --git a/ceph-setup/build/failure b/ceph-setup/build/failure new file mode 100644 index 000000000..573ff655c --- /dev/null +++ b/ceph-setup/build/failure @@ -0,0 +1,9 @@ +#!/bin/bash -ex + +# update shaman with the failed build status. At this point there aren't any +# architectures or distro information, so we just report this with the current +# (ceph-dev-setup) build information that includes log and build urls +BRANCH=`branch_slash_filter $BRANCH` +SHA1=${GIT_COMMIT} + +failed_build_status "ceph" diff --git a/ceph-setup/config/definitions/ceph-setup.yml b/ceph-setup/config/definitions/ceph-setup.yml index a68adaf0c..b4de9b322 100644 --- a/ceph-setup/config/definitions/ceph-setup.yml +++ b/ceph-setup/config/definitions/ceph-setup.yml @@ -43,6 +43,15 @@ allow-empty: false latest-only: false + - postbuildscript: + script-only-if-failed: True + script-only-if-succeeded: False + builders: + - shell: + !include-raw: + - ../../../scripts/build_utils.sh + - ../../build/failure + wrappers: - inject-passwords: global: true