- In your Discord administrative interface, create a new Discord webhook. Give it a name and specify the channel where it should post messages. Copy the URL for the webhook.
-
Replace
DISCORD_URLin the following script with your webhook URL. -
Paste the code into a
.jsfile. -
Add it as a new script integration.
Specify which events should trigger it using the
--eventsflag. Optionally specify environments with the--environmentsflag.
activity.text: A brief, one-line statement of what happened.activity.log: The complete build and deploy log output, as it would be seen in the Console log screen.