forked from lotas/hello-taskcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.taskcluster.yml
40 lines (40 loc) · 1.19 KB
/
.taskcluster.yml
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
version: 1
reporting: checks-v1 # Reports results as "GitHub Checks"
policy:
pullRequests: public_restricted
tasks:
- $if: 'tasks_for == "github-pull-request-untrusted"'
then:
taskQueueId: docker-compose/generic-worker
schedulerId: taskcluster-ui
created: {$fromNow: ''}
deadline: {$fromNow: '1 day'}
payload:
command:
- - /bin/bash
- '-c'
- echo "github-pull-request-untrusted"; exit 1
maxRunTime: 30
metadata:
name: example-task
description: An **example** task
owner: [email protected]
source: http://taskcluster/tasks/create
else:
$if: 'tasks_for == "github-pull-request"'
then:
taskQueueId: docker-compose/generic-worker
schedulerId: taskcluster-ui
created: {$fromNow: ''}
deadline: {$fromNow: '1 day'}
payload:
command:
- - /bin/bash
- '-c'
- echo "github-pull-request"; exit 0
maxRunTime: 30
metadata:
name: example-task
description: An **example** task
owner: [email protected]
source: http://taskcluster/tasks/create