Email notification with YAML
Tip
Learn more about:
YAML parameters for Email notification
Name | Type | Description |
---|---|---|
action Required | String | The ID of the action. |
type Required | String | The type of the action. Should be set to EMAIL . |
recipients Required | String | The recipients of the notification: email addresses (one per line). One of send_to_groups or recipients must be specified. |
send_to_groups Required | String | The list of groups' names to which emails will be sent. One of send_to_groups or recipients must be specified. |
content Required | String | The content of the notification. |
title Required | String | The title of the notification. |
send_to_groups Required | String | The list of groups' names to which emails will be sent. One of send_to_groups or recipients must be specified. |
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"
send_to_groups:
- "Managers"
- "Developers"
Last update:
Sep 24, 2024
Sep 24, 2024