[英]Email notification to a user once the build is successfully deployed using google cloud build
I have currently set up CI/CD using google cloud build to deploy angular app on google app engine.我目前已经使用谷歌云构建设置 CI/CD,以在谷歌应用引擎上部署 angular 应用程序。 But i want to know is it possible to send email notification to a user once the build is successfully deployed through google cloud build on app engine?
但是我想知道一旦构建通过应用引擎上的谷歌云构建成功部署,是否有可能向用户发送 email 通知?
email notification can be sent through jenkins and is it possible to configure similarly using cloud build? email 通知可以通过 jenkins 发送,是否可以使用云构建进行类似配置?
As of now, you can't directly send email notification on build creation.截至目前,您无法在构建创建时直接发送 email 通知。
Cloud Build publishes messages on a Google Pub/Sub topic when your build's state changes, such as when your build is created, when your build transitions to a working state, and when your build completes and from there you can write Cloud Function to trigger an email.当您的构建的 state 发生变化时,Cloud Build 会在 Google Pub/Sub 主题上发布消息,例如当您的构建被创建时,当您的构建转换为有效的 state 时,以及当您的构建完成时,您可以从那里编写 Cloud Z86FDDD1608593C34AF52773 触发器email。
Cloud Build -> Pub/Sub -> Function -> Email云构建 -> 发布/订阅 -> Function -> Email
Steps to configure cloud build notification with Pub/Sub . 使用 Pub/Sub 配置云构建通知的步骤。
When your Cloud Build builds change states, you can send notifications about these changes via third-party messaging services or email by following the documentation [1].当您的 Cloud Build 构建更改状态时,您可以按照文档 [1] 通过第三方消息传递服务或 email 发送有关这些更改的通知。 The documentation [2] will help you to set up email notifications using the Mailgun [3] API.
文档 [2] 将帮助您使用 Mailgun [3] API 设置 email 通知。 To know more about Mailgun, please follow their quickstart documentation [3]
要了解有关 Mailgun 的更多信息,请按照他们的快速入门文档 [3]
[1] https://cloud.google.com/cloud-build/docs/configure-third-party-notifications [1] https://cloud.google.com/cloud-build/docs/configure-third-party-notifications
[2] https://cloud.google.com/cloud-build/docs/configure-third-party-notifications#email_notifications [2] https://cloud.google.com/cloud-build/docs/configure-third-party-notifications#email_notifications
[3] https://www.mailgun.com/homepage/ [3] https://www.mailgun.com/homepage/
Cloud build now offers to configure SMTP notifications, with this we can send emails云构建现在提供配置 SMTP 通知,我们可以发送电子邮件
https://cloud.google.com/build/docs/configuring-notifications/configure-smtp https://cloud.google.com/build/docs/configuring-notifications/configure-smtp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.