You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/script/ci/send_slack_notification.sh

8 lines
314 B

#!/bin/bash
CHANNEL=C03474FL3
if [ $BRANCH_NAME == "master" ] && ! [ -z $BUILD_ID ]; then
MSG="Cartodb master testing $BUILD_ID has failed :sadpanda:"
echo $MSG
curl -F text="$MSG" -F channel=$CHANNEL -F as_user=false -H "Authorization: Bearer $SLACK_TOKEN" -X POST https://slack.com/api/chat.postMessage
fi