public class HookDefinition extends Object
Definition of a hook that will create tasks when defined events occur.
See http://schemas.taskcluster.net/hooks/v1/hook-definition.json#
| Modifier and Type | Class and Description |
|---|---|
class |
HookDefinition.Metadata |
| Modifier and Type | Field and Description |
|---|---|
String |
deadline
Deadline of the task,
pending and running runs are resolved as failed if not resolved by other means before the deadline. |
String |
expires
Task expiration, time at which task definition and status is deleted.
|
String |
hookGroupId
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 22
|
String |
hookId
Max length: 255
|
HookDefinition.Metadata |
metadata
|
Object |
schedule
Definition of the times at which a hook will result in creation of a task.
|
TaskTemplate |
task
|
| Constructor and Description |
|---|
HookDefinition() |
public String deadline
Deadline of the task, pending and running runs are resolved as failed if not resolved by other means before the deadline. Note, deadline cannot be more than 5 days into the future. Must be specified as A years B months C days D hours E minutes F seconds, though you may leave out zeros. For more details see: taskcluster.fromNow in taskcluster-client
Default: “1 day”
See http://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/deadline
public String expires
Task expiration, time at which task definition and status is deleted. Notice that all artifacts for the must have an expiration that is no later than this. Must be specified as A years B months C days D hours E minutes F seconds, though you may leave out zeros. For more details see: taskcluster.fromNow in taskcluster-client
Default: “3 months”
See http://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/expires
public String hookGroupId
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 22
See http://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/hookGroupId
public String hookId
public HookDefinition.Metadata metadata
public Object schedule
Definition of the times at which a hook will result in creation of a task. If several patterns are specified, tasks will be created at any time specified by one or more patterns. Note that tasks may not be created at exactly the time specified. {$ref: "http://schemas.taskcluster.net/hooks/v1/schedule.json"}
See http://schemas.taskcluster.net/hooks/v1/hook-definition.json#/properties/schedule
public TaskTemplate task
Copyright © 2014–2017 Mozilla. All rights reserved.