We use the circleci integration which already has a nice setup for sending messages when triggered to send the build failure notification.