Travis CI
How to use Travis CI with Flood
To have Tricentis Flood automatically repeat a test when a build is completed, you need to create a webhook using the Flood API. You can repeat existing flood tests with the following endpoint:
1
POST api.flood.io/floods/:flood_id/webhook
Copied!
Webhooks allow external services to be notified when certain events happen on Travis CI. When the specified events happen, Travis CI will send a POST request to each of the URLs you provide. You can configure these notifications in your .travis.yml
1
notifications:
2
webhooks:
3
urls:
4
- https://api.flood.io/floods/K9MHO2UsoSuRKmkjIGMZqg/webhook
5
on_success: [always|never|change] # default: always
6
on_failure: [always|never|change] # default: always
7
on_start: [true|false] # default: false
8
Copied!

Parameters

  • region optional target region to launch the test in
  • grid optional use a specific grid UUID to launch the test in instead of a region
If a grid region or uuid is not specified then the flood test will be repeated on all available grids for your account.

Example

1
curl --silent -X POST https://api.flood.io/floods/K9MHO2UsoSuRKmkjIGMZqg/webhook
2
Copied!

SECURITY

This webhook allows third party services to repeat a specific test, and allows anybody who has it to run a test against your server. If you think your webhook has been compromised you should delete the corresponding flood test from your account to prevent further use of that token.
Last modified 1yr ago
Copy link