Mypal/security/nss/.taskcluster.yml

86 lines
2.5 KiB
YAML
Raw Normal View History

2020-03-12 17:40:28 +00:00
# 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
# }
2019-03-11 10:26:37 +00:00
---
2020-03-12 17:40:28 +00:00
version: 1
2019-03-11 10:26:37 +00:00
tasks:
2020-03-12 17:40:28 +00:00
- $let:
# 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'
# ensure there's no trailing `/` on the repo URL
repoUrl:
$if: 'repository.url[-1] == "/"'
then: {$eval: 'repository.url[:-1]'}
else: {$eval: 'repository.url'}
# scheduler id
schedulerId: 'nss-level-${repository.level}'
in:
taskId: '${ownTaskId}'
taskGroupId: '${ownTaskId}'
schedulerId: '${schedulerId}'
created: {$fromNow: ''}
deadline: {$fromNow: '1 day'}
expires: {$fromNow: '14 days'}
2019-03-11 10:26:37 +00:00
metadata:
owner: mozilla-taskcluster-maintenance@mozilla.com
2020-03-12 17:40:28 +00:00
source: "${repository.url}"
2019-03-11 10:26:37 +00:00
name: "NSS Decision Task"
description: |
The task that creates all of the other tasks in the task graph
2020-03-12 17:40:28 +00:00
workerType: "linux"
provisionerId: "nss-${repository.level}"
2019-03-11 10:26:37 +00:00
2020-03-12 17:40:28 +00:00
scopes:
- 'assume:repo:${repoUrl[8:]}:branch:default'
2019-03-11 10:26:37 +00:00
tags:
2020-03-12 17:40:28 +00:00
createdForUser: "${ownerEmail}"
2019-03-11 10:26:37 +00:00
routes:
2020-03-12 17:40:28 +00:00
- "tc-treeherder-stage.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
- "tc-treeherder.v2.${repository.project}.${push.revision}.${push.pushlog_id}"
2019-03-11 10:26:37 +00:00
payload:
2020-03-12 17:40:28 +00:00
# TODO: use nssdev org , not djmitche, once the image is pushed there
image: djmitche/nss-decision:0.0.3
2019-03-11 10:26:37 +00:00
env:
2020-03-12 17:40:28 +00:00
TC_OWNER: "${ownerEmail}"
TC_SOURCE: "${repository.url}"
TC_PROJECT: ${repository.project}
TC_SCHEDULER_ID: "${schedulerId}"
MOZ_SCM_LEVEL: "${repository.level}"
NSS_PUSHLOG_ID: '${push.pushlog_id}'
NSS_HEAD_REPOSITORY: '${repository.url}'
NSS_HEAD_REVISION: '${push.revision}'
2019-03-11 10:26:37 +00:00
maxRunTime: 1800
command:
- bash
- -cx
- >
bin/checkout.sh &&
nss/automation/taskcluster/scripts/extend_task_graph.sh
features:
taskclusterProxy: true
extra:
treeherder:
symbol: D
build:
platform: nss-decision
machine:
platform: nss-decision