Skip to content

Commit d7c4dfb

Browse files
committed
chore: include $CIRCLE_BUILD_URL in the slack message
this will help us easily reach the failed CircleCI job from Slack
1 parent 6489051 commit d7c4dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/slack-notify-failure.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
BRANCH_NAME="$1"
44
NOTIFICATION_COLOR=${2:-#EE0000}
55

6-
curl -X POST -H 'Content-Type:application/json' -d '{"attachments": [{"color": "'$NOTIFICATION_COLOR'", "fallback": "Build Notification: '$CIRCLE_BUILD_URL'", "title": ":warning: Kubernetes-Monitor Merge Failure :warning:", "text": ":egg_broken_1: Kubernetes-Monitor broken branch: `'$BRANCH_NAME'` :egg_broken_1:"}]}' $SLACK_WEBHOOK
6+
curl -X POST -H 'Content-Type:application/json' -d '{"attachments": [{"color": "'$NOTIFICATION_COLOR'", "fallback": "Build Notification: '$CIRCLE_BUILD_URL'", "title": ":warning: Kubernetes-Monitor Merge Failure :warning:", "text": ":egg_broken_1: Kubernetes-Monitor broken branch: `'$BRANCH_NAME'` :egg_broken_1:\n'$CIRCLE_BUILD_URL'"}]}' $SLACK_WEBHOOK

0 commit comments

Comments
 (0)