Discord WebhookThis is a simple task that allows the integration of a Discord Webhook into your BUILD or RELEASE pipeline. Note: This IS NOT a Service Connection. Inputs
Creating a webhookWhen creating a webhook for a channel in a Discord server, you will be given a url which contains the Webhook ID and the Secret Key for that webhook in this format: https://discordapp.com/api/webhooks/{webhookId}/{webhookKey}. You will not need to provide the url to the task, but rather just the Webhook ID and Secret Key. (The first section in the link above, Making a Webhook, is all that needs to be followed to be able to use this task) Please read the Discord webhook message API to better understand the fields provided in this task; especially the embeds section if you want more control over your message. By entering one or multiple Embeds into the task, you have total control over the message content based on what the API expects to be provided in JSON content. ExamplesYAMLFollowing task sends a discord notification message when one of the previous tasks failed.
ClassicFull documentationPlease refer to the documentation on the github repository for full and up-to-date instructions. |