Microsoft Teams with YAML
List of YAML parameters and examples for the "Microsoft Teams" action
YAML parameters for Microsoft Teams
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | The ID of the action. |
type 必填 | String | The type of the action. Should be set to MICROSOFT_TEAMS . |
title 必填 | String | The title of the notification. |
content 必填 | String | The content of the notification. |
recipients 必填 | String | The recipient of the notification: email address. |
file_attachments | String[] | The attached files. |
send_as_html | Boolean | Defines 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"