Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Latest commit

 

History

History
82 lines (68 loc) · 3.01 KB

EMAIL.md

File metadata and controls

82 lines (68 loc) · 3.01 KB

Email

Overview

Send an email within your pipeline.

Tools Section

Name Required Type Default Description
to Required String The address to send this email to.
subject Required String The subject of the email.
body Required String The body of the email to send.
from String Who to show the email was sent from.
bcc String BCC email address list.
cc String CC email address list.
charset String UTF-8 Email body character encoding.
mimeType String text/plain. Email body MIME type.
replyTo String Reply-To email address.

Available Methods

send

Send an email.

Name Required Type Default Description
to Required String The address to send this email to.
subject Required String The subject of the email.
body Required String The body of the email to send.
from String Who to show the email was sent from.
bcc String BCC email address list.
cc String CC email address list.
charset String UTF-8 Email body character encoding.
mimeType String text/plain. Email body MIME type.
replyTo String Reply-To email address.

send Example

branches:
  feature:
    steps:
    - email:
      - send: Example email from {{ build_url }}
      - send:
          body: Example email from {{ build_url }}
          to: [email protected]

Full Example Pipeline

pipelines:
  tools:
    email:
      cc: [email protected]
      replyTo: [email protected]
    branches:
      patterns:
        feature: .+
  branches:
    feature:
      steps:
        - custom: # This should be your build process
          - buildPackage:
        - email:
          - send:
              to: [email protected]
              body: "Deployment to staging successful for branch {{ branch_name }} | {{ build_url }}"
    master:
      steps:
        - email:
          - send: 
              to: [email protected]
              body: "Merge to master successful, deployment successful | {{ build_url }}"

Additional Resources