From 0dcbece2ca19ee765121b96dacdbe20b9e5317b8 Mon Sep 17 00:00:00 2001 From: Tom Koscielniak Date: Mon, 24 Feb 2025 16:29:47 +0100 Subject: [PATCH] CI: Update slack notifications and remove Alex Remove Alex from Slack CI notifications, add Achilleas and tag only on failures. --- schutzbot/slack_notification.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/schutzbot/slack_notification.sh b/schutzbot/slack_notification.sh index 2ab294001..40f1b0d49 100755 --- a/schutzbot/slack_notification.sh +++ b/schutzbot/slack_notification.sh @@ -8,11 +8,19 @@ if [ -z "${SLACK_WEBHOOK_URL:-}" ]; then fi if [ "$3" == "ga" ]; then - MESSAGE="\"<$CI_PIPELINE_URL|GA composes pipeline>: *$1* $2, cc <@U01CUGX9L68>, <@U04PYMDRV5H>\"" + if [ "$1" == "FAILED" ]; then + MESSAGE="\"<$CI_PIPELINE_URL|GA composes pipeline>: *$1* $2, cc <@U01S1KWFMFF>, <@U04PYMDRV5H>\"" + else + MESSAGE="\"<$CI_PIPELINE_URL|GA composes pipeline>: *$1* $2\"" + fi else COMPOSE_ID=$(cat COMPOSE_ID) COMPOSER_NVR=$(cat COMPOSER_NVR) - MESSAGE="\"<$CI_PIPELINE_URL|Nightly pipeline> ($COMPOSE_ID: $COMPOSER_NVR): *$1* $2, cc <@U01CUGX9L68>, <@U04PYMDRV5H>\"" + if [ "$1" == "FAILED" ]; then + MESSAGE="\"<$CI_PIPELINE_URL|Nightly pipeline> ($COMPOSE_ID: $COMPOSER_NVR): *$1* $2, cc <@U01S1KWFMFF>, <@U04PYMDRV5H>\"" + else + MESSAGE="\"<$CI_PIPELINE_URL|Nightly pipeline> ($COMPOSE_ID: $COMPOSER_NVR): *$1* $2\"" + fi fi curl \