0

Want to send a custom html report to slack from AWS Code Build, Configured a buildspec.yml file regarding cypress automation UI test and it will generate a html report. Now I need to send that report into specific slack channel. If someone helps me to do that, it will highly appreciable.

Thanks

Aniket
  • 495
  • 1
  • 5
  • 16

1 Answers1

0

Install slackcat [1] in your build environment and issue required command to upload file in your Slack channel. Please don't hard code your Slack token in the buildspec and save it in Secrets Manager or Parameter Store [2].

Ref:

[1] https://github.com/rlister/slackcat

[2] How to retrieve Secret Manager data in buildspec.yaml

shariqmaws
  • 8,152
  • 1
  • 16
  • 35