YAML for Email notification
Send an email notification with custom content and optional attachments.
YAML examples for Email notification
HTML email with attachments
yaml
- action: Send deployment report
type: EMAIL
trigger_time: ON_EVERY_EXECUTION
disabled: false
title: Deployment Report - $BUDDY_RUN_BRANCH
from_name: CI/CD Pipeline
content: |-
<h1>Deployment Completed</h1>
<p>Branch: <strong>$BUDDY_RUN_BRANCH</strong></p>
<p>Revision: <code>$BUDDY_RUN_COMMIT</code></p>
<p>Triggered by: $BUDDY_INVOKER_NAME</p>
<hr>
<p>View execution: $BUDDY_RUN_URL</p>
send_as_html: true
to:
- john.doe
- team@example.com
- devops@example.com
send_to_groups:
- Developers
- DevOps Team
file_attachments:
- /artifacts/build-report.html
- /logs/deployment.log
ignore_errors: false
retry_interval: 60
retry_count: 3
timeout: 120
Simple email notification
yaml
- action: Email notification
type: EMAIL
trigger_time: ON_EVERY_EXECUTION
title: Build completed
content: The build has finished successfully.
to:
- dev@example.com