message

Use the message step to send a message to an integration via a notifier.

pipeline "send_message" {
step "message" "send_a_message" {
notifier = notifier.default
channel = "#ops"
to = ["ops@bluth.com"]
subject = "Sample message"
text = "I'm a sample message."
}
}

Arguments

ArgumentTypeOptional?Description
textStringRequiredThe message text to send to the integration.
notifierNotifier ReferenceRequiredThe notifier to send the request to send the message.
ccList<String>OptionalThe email addresses to send to. This only applies to email integrations.
bccList<String>OptionalThe email addresses to send to. This only applies to notifiers that uses email integrations.
channelStringOptionalThe channel to send the request to. This only applies to slack integrations.
subjectStringOptionalThe email subject. This only applies to notifiers that uses email integrations.
toList<String>OptionalThe email addresses to send to. This only applies to email integrations.

This step also supports the common step arguments and attributes.