Skip to content

Latest commit

 

History

History
85 lines (75 loc) · 2.48 KB

.taskcluster.yml

File metadata and controls

85 lines (75 loc) · 2.48 KB
 
Feb 14, 2019
Feb 14, 2019
1
2
3
4
5
6
7
8
# This file is rendered via JSON-e in a hook with context:
# {
# tasks_for: 'hg-push',
# push: {owner, pushlog_id, pushdate},
# repository: {url, project, level},
# now,
# ownTaskId: // taskId of the task that will be created
# }
Feb 14, 2019
Feb 14, 2019
9
---
Feb 14, 2019
Feb 14, 2019
10
version: 1
Feb 14, 2019
Feb 14, 2019
12
- $let:
Feb 14, 2019
Feb 14, 2019
13
14
15
16
17
18
# sometimes the push user is just `ffxbld` or the like, but we want an
# email-like field..
ownerEmail:
$if: '"@" in push.owner'
then: '${push.owner}'
else: '${push.owner}@noreply.mozilla.org'
Feb 14, 2019
Feb 14, 2019
19
# ensure there's no trailing `/` on the repo URL
Feb 14, 2019
Feb 14, 2019
20
21
22
23
repoUrl:
$if: 'repository.url[-1] == "/"'
then: {$eval: 'repository.url[:-1]'}
else: {$eval: 'repository.url'}
Jun 6, 2019
Jun 6, 2019
24
25
# scheduler id
schedulerId: 'nss-level-${repository.level}'
Feb 14, 2019
Feb 14, 2019
26
27
28
in:
taskId: '${ownTaskId}'
taskGroupId: '${ownTaskId}'
Jun 6, 2019
Jun 6, 2019
29
schedulerId: '${schedulerId}'
Feb 14, 2019
Feb 14, 2019
30
31
32
created: {$fromNow: ''}
deadline: {$fromNow: '1 day'}
expires: {$fromNow: '14 days'}
May 24, 2016
May 24, 2016
33
34
35
metadata:
owner: mozilla-taskcluster-maintenance@mozilla.com
Feb 14, 2019
Feb 14, 2019
36
source: "${repository.url}"
May 24, 2016
May 24, 2016
37
38
39
40
name: "NSS Decision Task"
description: |
The task that creates all of the other tasks in the task graph
Nov 7, 2019
Nov 7, 2019
41
42
workerType: "linux"
provisionerId: "nss-${repository.level}"
May 24, 2016
May 24, 2016
43
Feb 14, 2019
Feb 14, 2019
44
45
scopes:
- 'assume:repo:${repoUrl[8:]}:branch:default'
May 24, 2016
May 24, 2016
46
tags:
Feb 14, 2019
Feb 14, 2019
47
createdForUser: "${ownerEmail}"
May 24, 2016
May 24, 2016
48
49
routes:
Feb 14, 2019
Feb 14, 2019
50
51
- "tc-treeherder-stage.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
- "tc-treeherder.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
May 24, 2016
May 24, 2016
52
53
payload:
Feb 14, 2019
Feb 14, 2019
54
55
# TODO: use nssdev org , not djmitche, once the image is pushed there
image: djmitche/nss-decision:0.0.3
May 24, 2016
May 24, 2016
56
57
env:
Jul 11, 2019
Jul 11, 2019
58
TC_OWNER: "${ownerEmail}"
Feb 14, 2019
Feb 14, 2019
59
60
TC_SOURCE: "${repository.url}"
TC_PROJECT: ${repository.project}
Jun 6, 2019
Jun 6, 2019
61
TC_SCHEDULER_ID: "${schedulerId}"
Nov 7, 2019
Nov 7, 2019
62
MOZ_SCM_LEVEL: "${repository.level}"
Feb 14, 2019
Feb 14, 2019
63
64
65
NSS_PUSHLOG_ID: '${push.pushlog_id}'
NSS_HEAD_REPOSITORY: '${repository.url}'
NSS_HEAD_REVISION: '${push.revision}'
May 24, 2016
May 24, 2016
66
67
68
69
70
71
72
73
74
75
maxRunTime: 1800
command:
- bash
- -cx
- >
bin/checkout.sh &&
nss/automation/taskcluster/scripts/extend_task_graph.sh
Sep 12, 2016
Sep 12, 2016
76
77
features:
taskclusterProxy: true
May 24, 2016
May 24, 2016
78
79
80
81
extra:
treeherder:
symbol: D
May 25, 2016
May 25, 2016
82
83
build:
platform: nss-decision
Jun 6, 2016
Jun 6, 2016
84
85
machine:
platform: nss-decision