简体   繁体   English

当 aws codepipeline 运行时向 slack 发送警报

[英]sending alerts to slack when aws codepipeline is running

I created devop's pipeline using AWS codepipeline service.我使用 AWS codepipeline 服务创建了 devop 的管道。

my pipeline is我的管道是

source: github
build : aws-codebuild
deploy: ECSdeploy

my pipeline is working fine with out any issue.我的管道运行良好,没有任何问题。

with the help of SNS,CLOUDWATCH event rules,LAMBDA, i am able to send alerts to slack在 SNS、CLOUDWATCH 事件规则、LAMBDA 的帮助下,我能够向 slack 发送警报

pipeline: <Name of the pipeline>
status : <status of pipeline STARTED/SUCCEEDED/FAILED>

Question问题

  • I want to include GitHub merge number as part of alert我想包含 GitHub 合并号作为警报的一部分

I am looking for slack alert something like this我正在寻找像这样的松弛警报

pipeline: <Name of the pipeline>
status : <status of pipeline STARTED/SUCCEEDED/FAILED>
MERGE_ID : <GITHUB MERGE ID>

Can anyone suggestion a solution for this?任何人都可以为此提出解决方案吗?

Can you use the "CODEBUILD_RESOLVED_SOURCE_VERSION" environment var?您可以使用“CODEBUILD_RESOLVED_SOURCE_VERSION”环境变量吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM