Email Notifications
When you want to send an email on job-event
Email Templates
Notification emails use HTML templates located in server/src/templates/:
approval.html- Approval request notificationsjobstatus.html- Job outcome notifications (success, failed, aborted, warning)jobevent.html- Job lifecycle event notifications (launch, relaunch, delete, approve, reject)
These templates can be customized by replacing them with your own versions.
In Docker or Kubernetes deployments, mount your custom templates to/app/dist/src/templates/to override the defaults.
Example Docker mount:-v /path/to/custom/templates:/app/dist/src/templates/
Attributes
| Attribute | Comments |
|---|---|
| recipients array / required | Recipients
A list of email addresses who need to receive a notification |
| onStatus array | Jobstatus event
A list of jobstatus events you want to send a notification on. Use Choices:
|
| onEvent array | Job trigger events
A list of job lifecycle events (triggers) you want to send a notification on. Choices:
|
Examples
1) Send a notification on failed
notifications:
recipients:
- [email protected]
onStatus:
- failed
2) Send notifications on job events (launch, relaunch, approve, reject)
notifications:
recipients:
- [email protected]
- [email protected]
onEvent:
- launch
- relaunch
- approve
- reject
3) Send notifications on all events
notifications:
recipients:
- [email protected]
onStatus:
- any
onEvent:
- launch
- relaunch
- delete
- approve
- reject