Email notification with YAML

YAML parameters for Email notification

NameTypeDescription
action RequiredStringThe ID of the action.
type RequiredStringThe type of the action. Should be set to EMAIL.
recipients RequiredStringThe recipients of the notification: email addresses (one per line). One of send_to_groups or recipients must be specified.
send_to_groups RequiredStringThe list of groups' names to which emails will be sent. One of send_to_groups or recipients must be specified.
content RequiredStringThe content of the notification.
title RequiredStringThe title of the notification.
send_to_groups RequiredStringThe list of groups' names to which emails will be sent. One of send_to_groups or recipients must be specified.
send_as_htmlBooleanDefines whether to send the content as HTML.
file_attachmentsStringThe 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"
  send_to_groups:
  - "Managers"
  - "Developers"
Last update:
Sep 24, 2024