Email notification with YAML

YAML parameters for Email notification

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). One of send_to_groups or recipients must be specified.
send_to_groups
Required
StringThe list of groups' names to which emails will be sent. One of send_to_groups or recipients must be specified.
content
Required
StringThe content of the notification.
title
Required
StringThe title of the notification.
send_to_groups
Required
StringThe 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 modified on September 22, 2022

Get Started

Sign up for free and deploy your project in less than 10 minutes.