https://gitlab.com/tezos/tezos
Raw File
Tip revision: d90081f0616b13e3c27754567ecd76ff8bf9e3a8 authored by Hans Hoglund on 12 January 2022, 17:29:11 UTC
SCORU: Missing .gitignore entry
Tip revision: d90081f
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