In git config, hooks section I can:
- Define, update and delete URL to be called after a git push
- This URL will be called with POST method
- There will be one call per reference (branch, tag) contained in push
- Each call will have one arg 'ref' with the corresponding reference, www-urlencoded
- I have a log of the last 30 push with:
- The time, the status code returned by the target
- I can define several webhook per repository
Specific cases:
- On forks, the configuration of webhooks is not inherited
- On project creation, the configuration of webhooks is not inherited
- After gerrit migration the webhooks are still active (ie triggered after replication)
- There is no XML import/export
Example:
Given I configured http://myapp.io/one/target and http://anotherapp.bzh as 2 webhooks
When I push 2 commits made in 2 branches (master and feature_1)
Then Tuleap make 4 calls:
- POST http://myapp.io/one/target (body: ref=refs/heads/master ...)
- POST http://anotherapp.bzh (body: ref=refs/heads/master ...)
- POST http://myapp.io/one/target (body: ref=refs/heads/feature_1 ...)
- POST http://anotherapp.bzh (body: ref=refs/heads/feature_1 ...)