From 119004c7d46a58b0d7a2ff4f4b6ca283e37ef8ac Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 27 Jun 2019 22:27:22 +0300 Subject: [PATCH] ci: add branch info to CircleCI failure notifications (#31319) PR Close #31319 --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index a137860ffa..31c1f4e11b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -138,7 +138,7 @@ var_13: ¬ify_caretaker_on_fail # `$SLACK_CARETAKER_WEBHOOK_URL` is a secret env var defined in CircleCI project settings. # The URL comes from https://angular-team.slack.com/apps/A0F7VRE7N-circleci. command: | - notificationJson="{\"text\":\":x: \`$CIRCLE_JOB\` job failed on build $CIRCLE_BUILD_NUM: $CIRCLE_BUILD_URL :scream:\"}" + notificationJson="{\"text\":\":x: \`$CIRCLE_JOB\` job for $CIRCLE_BRANCH branch failed on build $CIRCLE_BUILD_NUM: $CIRCLE_BUILD_URL :scream:\"}" curl --request POST --header "Content-Type: application/json" --data "$notificationJson" $SLACK_CARETAKER_WEBHOOK_URL var_14: ¬ify_dev_infra_on_fail @@ -148,7 +148,7 @@ var_14: ¬ify_dev_infra_on_fail # `$SLACK_DEV_INFRA_CI_FAILURES_WEBHOOK_URL` is a secret env var defined in CircleCI project settings. # The URL comes from https://angular-team.slack.com/apps/A0F7VRE7N-circleci. command: | - notificationJson="{\"text\":\":x: \`$CIRCLE_JOB\` job failed on build $CIRCLE_BUILD_NUM: $CIRCLE_BUILD_URL :scream:\"}" + notificationJson="{\"text\":\":x: \`$CIRCLE_JOB\` job for $CIRCLE_BRANCH branch failed on build $CIRCLE_BUILD_NUM: $CIRCLE_BUILD_URL :scream:\"}" curl --request POST --header "Content-Type: application/json" --data "$notificationJson" $SLACK_DEV_INFRA_CI_FAILURES_WEBHOOK_URL version: 2