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_EXECUTION_BRANCH from_name: CI/CD Pipeline content: |- <h1>Deployment Completed</h1> <p>Branch: <strong>$BUDDY_EXECUTION_BRANCH</strong></p> <p>Revision: <code>$BUDDY_EXECUTION_REVISION</code></p> <p>Triggered by: $BUDDY_INVOKER_NAME</p> <hr> <p>View execution: $BUDDY_EXECUTION_URL</p> send_as_html: true recipients: |- team@example.com manager@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. recipients: dev@example.com