Webhook Notifications
Subscribe a channel to notifications from a CircleCI project.
  1. 1.
    In the channel you want to subscribe to notifications, type /circleci subscription add.
  2. 2.
    You can add the optional flag --only-failed to only receive notifications about failed jobs.
  3. 3.
    You can temporarily use a project different that the one set with /circleci default, using the optional flag --project <vcs/org-name/project-name>.
  4. 4.
    Install the Mattermost Plugin Notify Orb for CircleCI in your project. You usually do this by modifying the .circleci/config.yml.
  5. 5.
    You can add the command status in your existing jobs to get a notification when this job is finished.
  6. 6.
    Or you can set up the approval-notification job in a workflow to warn that you have a workflow waiting for approval.
  7. 7.
    Add the webhook URL given by /circleci subscription add to your CircleCI project.
  8. 8.
    You may add it to the orb as a parameter, but this is discouraged as it should be treated like a secret.
  9. 9.
    You should add it as a Environment Variable named MM_WEBHOOK, through the CircleCI UI or using the plugin: /circleci project env add MM_WEBHOOK <webhook-url>.
Last modified 8mo ago
Copy link
Edit on GitHub