Sha256: 9c106fc0e316cf3688b9fde81d0fe41486dd61b23b7d7ca038448307d110f0a3
Contents?: true
Size: 1.07 KB
Versions: 25
Compression:
Stored size: 1.07 KB
Contents
# Create a webhook Allowed methods: POST 1. Click the "NON-GET" button for the "pb:create" relation. 3. Paste in the webhook JSON (example shown below) in the body section and click "Make Request". An example webhook to trigger a Bamboo job. { "request": { "method": "POST", "url": "http://master.ci.my.domain:8085/rest/api/latest/queue/SOME-PROJECT?os_authType=basic", "username": "username", "password": "password", "headers": { "Accept": "application/json" } } } A request body can be specified as well. { "request": { "method": "POST", "url": "http://example.org/something", "body": { "some" : "json" } } } **BEWARE** The password can be reverse engineered from the database, so make a separate account for the Pact Broker to use, don't use your personal account! ### Testing To test a webhook, navigate to the webhook in the HAL browser, then make a POST request to the "execute" relation. The response or error will be shown in the window.
Version data entries
25 entries across 25 versions & 1 rubygems