Email notification with YAML

YAML parameters for Email notification

You can find the list with common parameters for all Buddy actions here.

NameTypeDescription
action
Required
StringThe ID of the action.
type
Required
StringThe type of the action. Should be set to EMAIL.
recipients
Required
StringThe recipients of the notification: email addresses (one per line).
content
Required
StringThe content of the notification.
title
Required
StringThe title of the notification.
send_as_htmlBooleanDefines whether to send the content as HTML.
file_attachmentsString[]The attached files.

YAML example for Email notification

actions:
- action: "EMAIL Action"
type: "EMAIL"
title: "$title"
content: "<b>${BUDDY_PIPELINE_NAME}</b> execution #${BUDDY_EXECUTION_ID}"
recipients: "mike@buddy.works\nalex@buddy.works"
send_as_html: true
variables:
- key: "title"
value: "Pipeline executed successfully!"
file_attachments:
- "fs:///file1"
- "fs:///file2"