Reputation: 12721
I'm hosting an atlassian bitbucket server on my own dedicated machine and I need to send an HTTP-request to a remote-script containing at least the project- and repository name for each push to any of the repositories.
For now I've been trying the plugins HTTP Request Post-Receive Hook for Stash
and Bitbucket Server Web Post Hooks Plugin
. Basically it's working but the hook has to be configured for each repository which results in high maintenance and is too error prone (we've got many repos and there will be many more in the future)...
What I want is a "global" hook which fires for any repository, or if that's not possible something like a default-setting for one of the hook-plugins mentioned above to automatically apply to new repositores.
Upvotes: 3
Views: 2069
Reputation: 4085
Unfortunately this isn't baked in currently. There's an open feature request you can watch and vote for here.
In the meantime, one thing you can do is use the REST API to apply hooks programatically. The hooks endpoint is documented here and there are endpoints on the same page for iterating over projects and repositories.
Disclosure: I work for Atlassian
Upvotes: 4