forked from mozilla/code-review
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaskcluster-hook.json
95 lines (95 loc) · 2.36 KB
/
taskcluster-hook.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"bindings": [
{
"exchange": "exchange/taskcluster-queue/v1/task-completed",
"routingKeyPattern": "route.project.relman.codereview.v1.try_ending"
}
],
"metadata": {
"description": "Automatically create code review publication tasjs",
"emailOnError": true,
"name": "Code review hook (CHANNEL)",
"owner": "[email protected]"
},
"schedule": [],
"task": {
"created": {
"$fromNow": "0 seconds"
},
"deadline": {
"$fromNow": "2 hours"
},
"expires": {
"$fromNow": "1 month"
},
"extra": {},
"metadata": {
"description": "Publish issues detected in remote tasks",
"name": "Code review publication (CHANNEL)",
"owner": "[email protected]",
"source": "https://github.com/mozilla/code-review"
},
"payload": {
"artifacts": {
"public/results": {
"path": "/tmp/results",
"type": "directory"
}
},
"cache": {},
"capabilities": {},
"command": [
"code-review-bot",
"--taskcluster-secret",
"project/relman/code-review/runtime-CHANNEL"
],
"env": {
"$merge": [
{
"$if": "firedBy == 'triggerHook'",
"else": {},
"then": {
"$eval": "payload"
}
},
{
"$if": "firedBy == 'pulseMessage'",
"else": {},
"then": {
"TRY_RUN_ID": {
"$eval": "payload.runId"
},
"TRY_TASK_GROUP_ID": {
"$eval": "payload.status.taskGroupId"
},
"TRY_TASK_ID": {
"$eval": "payload.status.taskId"
}
}
}
]
},
"features": {
"taskclusterProxy": true
},
"image": "mozilla/code-review:REVISION",
"maxRunTime": 7200
},
"priority": "normal",
"provisionerId": "aws-provisioner-v1",
"retries": 3,
"routes": ["index.project.relman.CHANNEL.code-review.latest"],
"schedulerId": "-",
"scopes": [
"secrets:get:project/relman/code-review/runtime-CHANNEL",
"index:insert-task:project.relman.CHANNEL.code-review.*",
"notify:email:*"
],
"tags": {},
"workerType": "relman-svc"
},
"triggerSchema": {
"additionalProperties": true,
"type": "object"
}
}