简体   繁体   English

Email 使用 google cloud build 成功部署构建后通知用户

[英]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.

相关问题 将 Kaniko 缓存与用于 Google Cloud 的 Google Cloud Build Kubernetes 部署一起使用 - Using Kaniko cache with Google Cloud Build for Google Cloud Kubernetes Deployments Google Cloud Function 部署后执行缓慢 - Google Cloud Function executes slowly once deployed 调用 spring 启动时出错 api 通过 Cloud build 部署在 google App Engine 中 - Error while calling spring boot api which is deployed in google App Engine through Cloud build 谷歌云构建构建步骤的“显示名称” - Google cloud build "display name" for build steps 无法在 google Cloud Build 中构建 jar - Not able to build a jar in google Cloud Build 在 Google Cloud Build 中使用 gcloud compute scp 时出错 - Error using gcloud compute scp with Google Cloud Build Google Cloud Build 不显示任何日志 - Google Cloud Build show no logs 谷歌云构建:.availableSecrets:未使用 - Google cloud build : .availableSecrets: unused 如何使用 yaml 文件将 Google Cloud Build 上的构建发布到 Google Container registry - How to publish a build on Google Cloud Build to Google Container registry using yaml file Google Cloud Build 在使用 Github App 时不会忽略文件 - Google Cloud Build does not ignore file when using Github App
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM