[DEBUG] Disable gitter notifications

This commit is contained in:
Kamil Śliwak 2021-10-28 15:03:29 +02:00
parent b1eb6bcbc0
commit 9d888ced8b

View File

@ -44,16 +44,7 @@ commands:
name: "Gitter notification" name: "Gitter notification"
when: << parameters.condition >> when: << parameters.condition >>
command: | command: |
[[ "<< parameters.event >>" == "failure" ]] && message=" ❌ Nightly job **${CIRCLE_JOB}** failed on **${CIRCLE_BRANCH}**. Please see [build #${CIRCLE_BUILD_NUM}](${CIRCLE_BUILD_URL}) for details." true
[[ "<< 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}\"}"
gitter_notify_failure: gitter_notify_failure:
description: "Posts a failure notification to the main room on Gitter (if not running on a PR)." description: "Posts a failure notification to the main room on Gitter (if not running on a PR)."