跳到主要内容

Microsoft Teams with YAML

List of YAML parameters and examples for the "Microsoft Teams" action

YAML parameters for Microsoft Teams

名称类型描述
action
必填
StringThe ID of the action.
type
必填
StringThe type of the action. Should be set to MICROSOFT_TEAMS.
title
必填
StringThe title of the notification.
content
必填
StringThe content of the notification.
recipients
必填
StringThe recipient of the notification: email address.
file_attachmentsString[]The attached files.
send_as_htmlBooleanDefines whether to send the content as HTML.

YAML example for Microsoft Teams

actions:
- action: "Send notification to MS Teams"
type: "MICROSOFT_TEAMS"
title: "$title"
content: "[#$BUDDY_EXECUTION_ID] $BUDDY_PIPELINE_NAME execution by [$BUDDY_INVOKER_NAME]($BUDDY_INVOKER_URL)"
send_as_html: true
recipients: "example@example.com"
file_attachments:
- "fs:///attachment"