简体   繁体   中英

sending alerts to slack when aws codepipeline is running

I created devop's pipeline using AWS codepipeline service.

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

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

Question

  • I want to include GitHub merge number as part of alert

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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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