From 9d888ced8be98e9b6ca3cc67393d7496f2e78608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Thu, 28 Oct 2021 15:03:29 +0200 Subject: [PATCH] [DEBUG] Disable gitter notifications --- .circleci/config.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b6d478b0b..2a4048047 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -44,16 +44,7 @@ commands: name: "Gitter notification" when: << parameters.condition >> command: | - [[ "<< parameters.event >>" == "failure" ]] && message=" ❌ Nightly job **${CIRCLE_JOB}** failed on **${CIRCLE_BRANCH}**. Please see [build #${CIRCLE_BUILD_NUM}](${CIRCLE_BUILD_URL}) for details." - [[ "<< parameters.event >>" == "success" ]] && message=" ✅ Nightly job **${CIRCLE_JOB}** succeeded on **${CIRCLE_BRANCH}**. Please see [build #${CIRCLE_BUILD_NUM}](${CIRCLE_BUILD_URL}) for details." - - curl "https://api.gitter.im/v1/rooms/${GITTER_NOTIFY_ROOM_ID}/chatMessages" \ - --request POST \ - --include \ - --header "Content-Type: application/json" \ - --header "Accept: application/json" \ - --header "Authorization: Bearer ${GITTER_API_TOKEN}" \ - --data "{\"text\":\"${message}\"}" + true gitter_notify_failure: description: "Posts a failure notification to the main room on Gitter (if not running on a PR)."