Each action on CDS triggers an event. It’s possible at the project level to setup notification through a webhook, filtering by event.
To be able to manage notification you will need the permission manage
on your project
cdsctl experimental project notification import <PROJECT-KEY> <notification.yaml>
PROJECT-KEY
: The project keynotification.yaml
: The path to a yaml file name containing the webhook configuration.name: my-notif
webhook_url: https://myserver/notif
filters:
workflowRun:
events: [Run.*]
analysis:
events: [AnalysisStart, AnalysisDone]
auth:
headers:
Authorization: Bearer ey......
name
: The name of your notificationwebhook_url
: URL that CDS will call to POST the notificationfilters
: A map of named filters
filters.<filter_name>.events
: a list of event which you want to have a notification. You can use regular expressionauth.headers
: a map of headers to send