diff options
author | Robert Speicher <robert@gitlab.com> | 2017-05-02 13:47:31 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2017-05-02 13:47:31 +0000 |
commit | 1d180667b7543c76ce0b47b80a3dde68adf27442 (patch) | |
tree | db35e5e2cd86a20919776f94ee02d1298922cb57 /scripts | |
parent | 780dcf9cdb9a86b83388f34b07485382bf047cfd (diff) | |
parent | aafe288982811ac33d80547993c5b49930dd4bad (diff) | |
download | gitlab-ce-1d180667b7543c76ce0b47b80a3dde68adf27442.tar.gz |
Merge branch '29036-use-slack-service-to-notify-of-failed-pipelines' into 'master'
Remove notify slack job
Closes #29036
See merge request !9709
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/notify_slack.sh | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scripts/notify_slack.sh b/scripts/notify_slack.sh deleted file mode 100755 index 6b3bc563c7a..00000000000 --- a/scripts/notify_slack.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -# Sends Slack notification ERROR_MSG to CHANNEL -# An env. variable CI_SLACK_WEBHOOK_URL needs to be set. - -CHANNEL=$1 -ERROR_MSG=$2 - -if [ -z "$CHANNEL" ] || [ -z "$ERROR_MSG" ] || [ -z "$CI_SLACK_WEBHOOK_URL" ]; then - echo "Missing argument(s) - Use: $0 channel message" - echo "and set CI_SLACK_WEBHOOK_URL environment variable." -else - curl -X POST --data-urlencode 'payload={"channel": "'"$CHANNEL"'", "username": "gitlab-ci", "text": "'"$ERROR_MSG"'", "icon_emoji": ":gitlab:"}' "$CI_SLACK_WEBHOOK_URL" -fi
\ No newline at end of file |