diff options
Diffstat (limited to 'lib/tasks/ci/slack.rake')
-rw-r--r-- | lib/tasks/ci/slack.rake | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/tasks/ci/slack.rake b/lib/tasks/ci/slack.rake deleted file mode 100644 index 0afc0e908d1..00000000000 --- a/lib/tasks/ci/slack.rake +++ /dev/null @@ -1,9 +0,0 @@ -namespace :ci do - namespace :slack do - desc "GitLab CI | Send slack notification on build failure" - task :error, [:channel, :error] do |t, args| - next unless !"#{ENV['CI_SLACK_WEBHOOK_URL']}".blank? && args.channel && args.error - Kernel.system "curl -X POST --data-urlencode 'payload={\"channel\": \"#{args.channel}\", \"username\": \"gitlab-ci\", \"text\": \"#{args.error}\", \"icon_emoji\": \":gitlab:\"}' $CI_SLACK_WEBHOOK_URL" - end - end -end |