Fix slack GA pipeline notification job failure

This commit is contained in:
Tom Koscielniak 2024-07-23 09:29:17 +02:00 committed by Jakub Rusz
parent 7c830e90b0
commit 0be8764a79

View file

@ -7,11 +7,11 @@ if [ -z "${SLACK_WEBHOOK_URL:-}" ]; then
exit 0
fi
COMPOSE_ID=$(cat COMPOSE_ID)
COMPOSER_NVR=$(cat COMPOSER_NVR)
if [ "$3" == "ga" ]; then
MESSAGE="\"GA composes pipeline execution finished with status *$1* $2 \n QE: @atodorov, @jrusz, @tkosciel\n Link to results: $CI_PIPELINE_URL \""
else
COMPOSE_ID=$(cat COMPOSE_ID)
COMPOSER_NVR=$(cat COMPOSER_NVR)
MESSAGE="\"Nightly pipeline execution on *$COMPOSE_ID* with *$COMPOSER_NVR* finished with status *$1* $2 \n QE: @atodorov, @jrusz, @tkosciel\n Link to results: $CI_PIPELINE_URL\n For edge testing status please see https://url.corp.redhat.com/edge-pipelines \""
fi