diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-07-16 19:54:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 19:54:51 +0200 |
commit | a449e9a2cf4b73163df75674059de04488cd2706 (patch) | |
tree | 59b682bab11f3a1f4136c9678e3c91c80c6947ab /contrib/cirrus/notice_branch_failure.sh | |
parent | 386ffd28d64a19a9c244ab477a45c4d2fa239ff6 (diff) | |
parent | 35c174f723da081af7cbc1016992cd6714cf6f24 (diff) | |
download | podman-a449e9a2cf4b73163df75674059de04488cd2706.tar.gz podman-a449e9a2cf4b73163df75674059de04488cd2706.tar.bz2 podman-a449e9a2cf4b73163df75674059de04488cd2706.zip |
Merge pull request #3546 from cevich/abstract_dest_branch
Cirrus: Abstract destination branch refs.
Diffstat (limited to 'contrib/cirrus/notice_branch_failure.sh')
-rwxr-xr-x | contrib/cirrus/notice_branch_failure.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/cirrus/notice_branch_failure.sh b/contrib/cirrus/notice_branch_failure.sh new file mode 100755 index 000000000..423231dfd --- /dev/null +++ b/contrib/cirrus/notice_branch_failure.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +set -e + +source $(dirname $0)/lib.sh + +# mIRC "escape" codes are the most standard, for a non-standard client-side interpretation. +ETX="$(echo -n -e '\x03')" +RED="${ETX}4" +NOR="$(echo -n -e '\x0f')" + +if [[ "$CIRRUS_BRANCH" = "$DEST_BRANCH" ]] +then + BURL="https://cirrus-ci.com/build/$CIRRUS_BUILD_ID" + ircmsg "${RED}[Action Recommended]: ${NOR}Post-merge testing on ${RED}$CIRRUS_BRANCH failed${NOR} in $CIRRUS_TASK_NAME on $(OS_RELEASE_ID)-$(OS_RELEASE_VER): $BURL. Please investigate, and re-run if appropriate." +fi + +# This script assumed to be executed on failure +die 1 "Testing Failed" |