Files
firefox/testing/taskcluster/tasks/build.yml
T
Dustin J. Mitchell c20869c86b Bug 1220684: use namespaced docker-worker caches; r=garndt
This adds a `--level` option to taskcluster-graph, and passes the level
supplied from mozilla-taskcluster.  It then substitutes that into cache names
for just about every cache (tooltool being the exception, as it verifies hashes
and is thus immune to poisoning).  The scopes for these new cache names are
already included in the relevant `moz-tree:level:*` roles.

This also strips `-c6` from cache names; I added this when we were
transitioning from the Ubuntu-based build images, to ensure I got clean caches.
It's no longer necessary.
2016-01-13 22:04:19 +00:00

62 lines
1.7 KiB
YAML

# This is the "base" task which contains the common values all builds must
# provide.
---
taskId: {{build_slugid}}
task:
created: '{{now}}'
deadline: '{{#from_now}}24 hours{{/from_now}}'
metadata:
source: '{{source}}'
owner: [email protected]
tags:
createdForUser: {{owner}}
workerType: b2gbuild
provisionerId: aws-provisioner-v1
schedulerId: task-graph-scheduler
routes:
- 'index.gecko.v1.{{project}}.revision.linux.{{head_rev}}.{{build_name}}.{{build_type}}'
- 'index.gecko.v1.{{project}}.latest.linux.{{build_name}}.{{build_type}}'
scopes:
# Nearly all of our build tasks use tc-vcs so just include the scope across
# the board.
- 'docker-worker:cache:level-{{level}}-{{project}}-tc-vcs'
payload:
# Two hours is long but covers edge cases (and matches bb based infra)
maxRunTime: 7200
cache:
level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
# All builds share a common artifact directory for ease of uploading.
artifacts:
'public/build':
type: directory
path: '/home/worker/artifacts/'
expires: '{{#from_now}}1 year{{/from_now}}'
env:
# Common environment variables for checking out gecko
GECKO_BASE_REPOSITORY: '{{base_repository}}'
GECKO_HEAD_REPOSITORY: '{{head_repository}}'
GECKO_HEAD_REV: '{{head_rev}}'
GECKO_HEAD_REF: '{{head_ref}}'
TOOLTOOL_REPO: 'https://git.mozilla.org/build/tooltool.git'
TOOLTOOL_REV: 'master'
extra:
build_product: '{{build_product}}'
build_name: '{{build_name}}'
build_type: '{{build_type}}'
index:
rank: {{pushlog_id}}
treeherder:
groupSymbol: tc
groupName: Submitted by taskcluster
symbol: B