]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
kernel: Update shaman status on failed build
authorDavid Galloway <dgallowa@redhat.com>
Wed, 2 Oct 2019 17:18:41 +0000 (13:18 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 2 Oct 2019 17:18:41 +0000 (13:18 -0400)
Signed-off-by: David Galloway <dgallowa@redhat.com>
kernel/build/failure [new file with mode: 0644]
kernel/config/definitions/kernel.yml

diff --git a/kernel/build/failure b/kernel/build/failure
new file mode 100644 (file)
index 0000000..c80e766
--- /dev/null
@@ -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 "kernel" $NORMAL_DISTRO $NORMAL_DISTRO_VERSION $NORMAL_ARCH
index c9fc520eb605d983c9df4b525ae6e87542e5932d..c68de489603ac0c7aeda015f8222723b4b8977ea 100644 (file)
@@ -146,6 +146,19 @@ If this is checked, then the binaries will be built and pushed to chacra even if
             - ../../build/prepare_config
             - ../../build/build_rpm
 
+    publishers:
+      - postbuildscript:
+          builders:
+            - role: SLAVE
+              build-on:
+                  - FAILURE
+                  - ABORTED
+              build-steps:
+                - shell:
+                    !include-raw:
+                      - ../../../scripts/build_utils.sh
+                      - ../../build/failure
+
     wrappers:
       - inject-passwords:
           global: true