Skip to content

Commit dc99957

Browse files
author
Nhi Nguyen
committed
Send Slack notifications on failed builds on master only
1 parent b75f95c commit dc99957

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ jobs:
3434
./google-cloud-sdk/bin/gcloud auth activate-service-account --key-file secret.json
3535
./google-cloud-sdk/bin/gcloud firebase test android run --app analytics-samples/analytics-sample/build/outputs/apk/debug/analytics-sample-debug.apk --test analytics-samples/analytics-sample/build/outputs/apk/androidTest/debug/analytics-sample-debug-androidTest.apk --device-ids Nexus6,hammerhead,sailfish --os-version-ids 19,21,22,23,24,25,26,27
3636
fi
37+
- run:
38+
name: Build Failed
39+
when: on_fail
40+
command: |
41+
wget https://raw.githubusercontent.com/segmentio/circleci-notifications/master/slack-notify-branch.sh
42+
chmod u+x slack-notify-branch.sh
43+
BUILD_STATUS="Failed" NOTIFY_BRANCH="master" ./slack-notify-branch.sh
3744
- save_cache:
3845
paths:
3946
- ~/.gradle

0 commit comments

Comments
 (0)