https://gitlab.com/tezos/tezos
Raw File
Tip revision: 94bafe4f13818557c7bd49852cf516be3421e5df authored by Fedor Sheremetyev on 18 January 2022, 07:28:09 UTC
Update CI config
Tip revision: 94bafe4
send_slack_alert_coverage.sh
#! /bin/sh

set -e

if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
    echo "Usage: $0 SLACK_TOKEN CHANNEL_ID PIPELINE_URL"
    exit 1;
fi

SLACK_COVERAGE_TOKEN=${1:?}
shift
CHANNEL_ID=${1:?}
shift
CI_PIPELINE_URL=${1:?}
shift


curl --silent \
     -H "Authorization: Bearer $SLACK_COVERAGE_TOKEN" \
     -d "channel=$CHANNEL_ID" \
     -d "text=/!\ Corrupted coverage file found in pipeline: $CI_PIPELINE_URL /!\\" \
     -X POST https://slack.com/api/chat.postMessage
back to top