ground-android
ground-android copied to clipboard
Save config for google chat notifications
Fixes #1177
Configures a google chat notifier when a build is passes / fails / timeouts on the master branch. https://cloud.google.com/build/docs/configuring-notifications/notifiers
How does it work?

Cloud run free tier:

Tested by removing the "master" filter and triggering a cloud build. A notification was sent to the google chat space after the build was complete.

@gino-m PTAL?
P.S. The same config can be extended to be used for web repo
Codecov Report
Merging #1194 (330aa81) into master (10e0938) will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #1194 +/- ##
=========================================
Coverage 29.64% 29.64%
Complexity 783 783
=========================================
Files 291 291
Lines 7638 7638
Branches 346 346
=========================================
Hits 2264 2264
Misses 5266 5266
Partials 108 108
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
The config looks much less intimidating than I expected! Qq - does this also enable email notifications?
The config looks much less intimidating than I expected! Qq - does this also enable email notifications?
No, email notifications would require configuring a SMTP server and saving the sender email credentials in the secret manager. https://cloud.google.com/build/docs/configuring-notifications/configure-smtp
This config is the only script that can be checked-in. Everything else was one-time setup using CLI.
@gino-m Can we merge this now?
@JSunde Can you please approve this?