In a nutshell: I want a push to a Diffusion-hosted repository to be able to trigger an HTTP request to an arbitrary URL in the fashion of Github webhooks. I want to do this in order to trigger immediate builds on an external CI system so that it doesn't have to continuously poll the repository, which would otherwise not be a problem, except I want the builds to execute immediately.
Description
Related Objects
- Mentioned Here
- T11330: Allow Herald to "Queue Call to Webhook: ..."
Event Timeline
I'm going to merge this into T11330, but note that you can already do this via Harbormaster, as this install does (we build via Drydock, but you can run a "Make HTTP Request..." build plan instead).
Much appreciated.
I noticed that the "Run Build Plans" action is only available with the rule for "Commits" and not the rule for "Commit Hook: Commit Content". I gather that the latter rule is for denying commits, but I'm not clear on when the "Commits" rule will be triggered. Will that be immediately after push, or is there some poll interval internal to Phabricator?
In almost all cases, it's within a second or two of the push.
It may be longer if the commit is exceptionally large or complex, you have numerous/complex/custom Herald rules, a lot of stuff landed at the same time, you're running on an overclocked toaster, etc. In these cases, it runs as soon as possible, but processing may take longer (but usually not more than a few seconds).
Well, I was going to overclock my toaster, but I got some e-mail about a recall because of DNS or whatever.
Thanks for the quick response. I'll give a "Commits" rule a try, sounds like it should work for me.