KocproZ / jenkins-discord

A post-build plugin that sends the build status to a Discord channel.
MIT License
39 stars 36 forks source link

Add support for canary/ptb webhooks #32

Closed aveao closed 6 years ago

aveao commented 6 years ago

When you login through a canary client (or the site) and generate a Webhook, you get something like https://canary.discordapp.com/api/webhooks/<channel snowflake>/<stuff>.

You get a similar result on ptb client too, just with ptb. instead of canary..

While throwing canary. or ptb. from domain doesn't affect its functionality (it works the same), I prefer to keep webhooks on the domain I get them from as they still work, and this causes Jenkins to nag me and throw a error even though it works perfectly fine when I save it and try it out.

This PR adds support for ptb and canary webhooks to finally end the nag.

jupjohn commented 6 years ago

Thank you