TravisCI

Add TravisCI notifications via a new WebHook in Rocket.Chat

Receive alerts

  1. Create a new Incoming WebHook.

  2. Select the channel where you will receive the alerts. You may wish to create a dedicated channel for your notifications.

  3. Select an account from which the alerts will be posted. You may wish to create a dedicated account just for notifications.

  4. Set the "Enable Scripts" option to True.

  5. Copy scripts below and paste it in Script field.

  6. Save the integration. This will generate a webhook URL and secret for you.

  7. In your .travis.yml file add WebHooks parameter with webhook URL generated.

  notifications:
      webhooks: <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

Screenshot of messages generated by TravisCI integration script

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

Last updated