![]() 'body': 'Message is sent to Slack successfully.' Response = requests.post(slack_webhook_url, json=message) "Content-Length": teLength(payloadStr),Ĭonst postReq = https.request(options, function (res) :\n'.format(build_id) JSON.stringify(content.original ? content.original : content) +Ĭonst payloadStr = JSON.stringify(payload) Text: " the API is running into an issue", Text: "Whoops, looks like something went wrong □□", formatting the message according Slack API I am not sure how to add trigger because in lambda I used cloudwatch trigger for lambda to work. I would want to send entire codebuild logs only once when the codebuild is finished. It is throwing messages to slack like a spam. ![]() Its working but everytime the logs is generated while codebuild is running. I have created a lambda function that send codebuild cloudwatch logs to slack.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |