github.com/containers/libpod@v1.9.4-0.20220419124438-4284fd425507/contrib/cirrus/notice_branch_failure.sh (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  source $(dirname $0)/lib.sh
     6  
     7  # mIRC "escape" codes are the most standard, for a non-standard client-side interpretation.
     8  ETX="$(echo -n -e '\x03')"
     9  RED="${ETX}4"
    10  NOR="$(echo -n -e '\x0f')"
    11  
    12  if [[ "$CIRRUS_BRANCH" = "$DEST_BRANCH" ]]
    13  then
    14      BURL="https://cirrus-ci.com/build/$CIRRUS_BUILD_ID"
    15      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."
    16  fi
    17  
    18  # This script assumed to be executed on failure
    19  die 1 "Testing Failed"