diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-03-05 18:19:08 +0000 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-05-01 19:32:13 +0200 |
commit | aafe288982811ac33d80547993c5b49930dd4bad (patch) | |
tree | 906646b7662eadd7787e473c8e16d547349a4dc2 | |
parent | ec9f6180bc4684521444ee0681308bf4c9c71297 (diff) | |
download | gitlab-ce-aafe288982811ac33d80547993c5b49930dd4bad.tar.gz |
Remove notify slack job29036-use-slack-service-to-notify-of-failed-pipelines
-rw-r--r-- | .gitlab-ci.yml | 16 | ||||
-rwxr-xr-x | scripts/notify_slack.sh | 13 |
2 files changed, 0 insertions, 29 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d84725b202a..712c02046cc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -420,22 +420,6 @@ trigger_docs: - master@gitlab-org/gitlab-ce - master@gitlab-org/gitlab-ee -# Notify slack in the end -notify:slack: - stage: post-test - <<: *dedicated-runner - variables: - SETUP_DB: "false" - USE_BUNDLE_INSTALL: "false" - script: - - ./scripts/notify_slack.sh "#development" "Build on \`$CI_COMMIT_REF_NAME\` failed! Commit \`$(git log -1 --oneline)\` See <https://gitlab.com/gitlab-org/$(basename "$PWD")/commit/"$CI_COMMIT_SHA"/pipelines>" - when: on_failure - only: - - master@gitlab-org/gitlab-ce - - tags@gitlab-org/gitlab-ce - - master@gitlab-org/gitlab-ee - - tags@gitlab-org/gitlab-ee - pages: before_script: [] stage: pages 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 |