@@ -3733,11 +3733,9 @@ https://www.npmjs.com/package/cron-parser. For example:
3733
3733
* `['0 0 1 * * *']` -- daily at 1:00 UTC
3734
3734
* `['0 0 9,21 * * 1-5', '0 0 12 * * 0,6']` -- weekdays at 9:00 and 21:00 UTC, weekends at noon
3735
3735
3736
- Hooks can be parametrized using JSON-e. The task definition in the hook is used as a JSON-e template,
3737
- and the paramters are supplied as a JSON-e context. The result of rendeting the template and context is
3738
- used as the task definition. Currently context can only be provided with the triggerHook method.
3739
- You can find a complete description about how json-e works, here:
3740
- https://github.com/taskcluster/json-e'
3736
+ The task definition is used as a JSON-e template, with a context depending on how it is fired. See
3737
+ https://docs.taskcluster.net/reference/core/taskcluster-hooks/docs/firing-hooks
3738
+ for more information.'
3741
3739
Base URL = 'https://hooks.taskcluster.net/v1'
3742
3740
Entry 0 =
3743
3741
Entry Type = 'function'
@@ -3869,7 +3867,11 @@ Entry 8 =
3869
3867
Entry Input = 'http://schemas.taskcluster.net/hooks/v1/trigger-context.json'
3870
3868
Entry Output = 'http://schemas.taskcluster.net/hooks/v1/task-status.json'
3871
3869
Entry Title = 'Trigger a hook'
3872
- Entry Description = 'This endpoint will trigger the creation of a task from a hook definition.'
3870
+ Entry Description = 'This endpoint will trigger the creation of a task from a hook definition.
3871
+
3872
+ The HTTP payload must match the hooks `triggerSchema`. If it does, it is
3873
+ provided as the `payload` property of the JSON-e context used to render the
3874
+ task template.'
3873
3875
Entry 9 =
3874
3876
Entry Type = 'function'
3875
3877
Entry Method = 'get'
@@ -3910,7 +3912,11 @@ Entry 11 =
3910
3912
Entry Input = 'http://schemas.taskcluster.net/hooks/v1/trigger-context.json'
3911
3913
Entry Output = 'http://schemas.taskcluster.net/hooks/v1/task-status.json'
3912
3914
Entry Title = 'Trigger a hook with a token'
3913
- Entry Description = 'This endpoint triggers a defined hook with a valid token.'
3915
+ Entry Description = 'This endpoint triggers a defined hook with a valid token.
3916
+
3917
+ The HTTP payload must match the hooks `triggerSchema`. If it does, it is
3918
+ provided as the `payload` property of the JSON-e context used to render the
3919
+ task template.'
3914
3920
Entry 12 =
3915
3921
Entry Type = 'function'
3916
3922
Entry Method = 'get'
0 commit comments