跳到主要内容

Email notification with YAML

List of YAML parameters and examples for the "E-mail Notification" action.

YAML parameters for Email notification

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to EMAIL.
recipients
必填
StringThe recipients of the notification: email addresses (one per line).
content
必填
StringThe content of the notification.
title
必填
StringThe title of the notification.
send_as_htmlBooleanDefines whether to send the content as HTML.
file_attachmentsString[]The attached files.
from_nameStringThe e-mail sender name.

YAML example for Email notification

actions:
- action: "EMAIL Action"
type: "EMAIL"
title: "$title"
from_name: "Buddy"
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"