]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-setup: report to shaman on build failure
authorAndrew Schoen <aschoen@redhat.com>
Tue, 18 Oct 2016 19:27:10 +0000 (14:27 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 18 Oct 2016 19:27:10 +0000 (14:27 -0500)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-setup/build/failure [new file with mode: 0644]
ceph-setup/config/definitions/ceph-setup.yml

diff --git a/ceph-setup/build/failure b/ceph-setup/build/failure
new file mode 100644 (file)
index 0000000..573ff65
--- /dev/null
@@ -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"
index a68adaf0c3125a9a962249c8727d03e1f153e52b..b4de9b322f2a204a22b3fe2c36698d39fefbb07f 100644 (file)
           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