summaryrefslogtreecommitdiff
path: root/.taskcluster.yml
blob: 8bcc144317cfa5a3c4b689f294c0ad6e746a5ca1 (plain)
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
---
metadata:
  name: "NSS Continuous Integration"
  description: "Build NSS and run tests in various configurations"
  owner: "mozilla-taskcluster-maintenance@mozilla.com"
  source: "{{{source}}}"

tasks:
  - provisionerId: "aws-provisioner-v1"
    workerType: "gecko-decision"

    scopes:
      - "queue:route:tc-treeherder-stage.nss.{{revision}}"
      - "queue:route:tc-treeherder.nss.{{revision}}"
      - "scheduler:extend-task-graph:*"

    routes:
      - "tc-treeherder-stage.nss.{{revision}}"
      - "tc-treeherder.nss.{{revision}}"

    metadata:
      name: "NSS Decision Task"
      description: "Extends the task graph with everything we need"
      owner: "mozilla-taskcluster-maintenance@mozilla.com"
      source: "{{{source}}}"
    tags:
      createdForUser: {{owner}}

    payload:
      maxRunTime: 1800
      image: "ttaubert/nss-ci:0.0.12"
      command:
        - bash
        - -cx
        - >
          bin/checkout.sh &&
          nss/automation/taskcluster/scripts/extend_task_graph.sh
      env:
        TC_DOCKER_IMAGE: "ttaubert/nss-ci:0.0.12"
        TC_PROVISIONER_ID: "aws-provisioner-v1"
        TC_WORKER_TYPE: "hg-worker"
        NSS_HEAD_REPOSITORY: '{{{url}}}'
        NSS_HEAD_REVISION: '{{revision}}'

      graphs:
        - /home/worker/artifacts/graph.json

      artifacts:
        public:
          type: "directory"
          path: "/home/worker/artifacts"
          expires: "{{#from_now}}1 hour{{/from_now}}"

    extra:
      treeherder:
        symbol: D
        revision: '{{revision}}'
        revision_hash: '{{revision_hash}}'