Discord with YAML
Tip
Success
📚 Buddy Tutorial: Learn how to develop a simple Node.js Discord bot
YAML parameters for Discord
Name | Type | Description |
---|---|---|
action Required | String | The name of the action. |
type Required | String | The type of the action. Should be set to DISCORD . |
notification_url Required | String | The URL do the desired Discord webhook. |
content | String | The content of the notification. |
attachments | String | The embedded rich content. More info here. |
file_attachments | String[] | The attached files. |
YAML example for Discord
yamlactions: - action: "Send notification to Discord" type: "DISCORD" notification_url: "https://discordapp.com/api/webhooks/45379791241512375553/zi3NxdcB6yFfa215n6UN8kece312392-u1BpaBUc2CYWoBMrrIJpK7t5lBr5nxFUqc9v9eKX8" content: "[#$BUDDY_RUN_ID] $BUDDY_PIPELINE_NAME by $BUDDY_INVOKER_NAME" attachments: - "{"title":"Details","url":"$BUDDY_RUN_URL","fields":[{"name":"Status","value":"Successful execution"},{"name":"Revision","value":"$BUDDY_RUN_COMMIT"},{"name":"Pipeline","value":"$BUDDY_PIPELINE_NAME"},{"name":"Project","value":"$BUDDY_PROJECT_NAME"}]}" file_attachments: - "fs:///file1" - "fs:///file2"
Last modified on Mar 4, 2025