Email notification with YAML
List of YAML parameters and examples for the "E-mail Notification" action.
提示
Learn more about:
YAML parameters for Email notification
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | The ID of the action. |
type 必填 | String | The type of the action. Should be set to EMAIL . |
recipients 必填 | String | The recipients of the notification: email addresses (one per line). |
content 必填 | String | The content of the notification. |
title 必填 | String | The title of the notification. |
send_as_html | Boolean | Defines whether to send the content as HTML. |
file_attachments | String[] | The attached files. |
from_name | String | The 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"