TravisCI
Last updated
Last updated
Add TravisCI notifications via a new WebHook in Ministry.Chat
Create a new Incoming WebHook
Select the channel where you will receive the alerts. You may wish to create a dedicated channel for your notifications.
Select an account from which the alerts will be posted. You may wish to create a dedicated account just for notifications.
Set the "Enable Scripts" option to True
.
Copy scripts below and paste it in Script field.
Save the integration. This will generate a webhook URL and secret for you.
In your .travis.yml
file add WebHooks parameter with webhook URL generated.
This script will generate notifications for the following build events:
Build finished status for any pushed code
Build finished status for new Pull Request
Note: If status is passed, message color is green otherwise it is red.
If you want more customizations, please look in TravisCI documentation: https://docs.travis-ci.com/user/notifications/#Configuring-webhook-notifications