mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 1356700 - Set MOZ_AUTOMATION on all taskcluster jobs. r=dustin
--HG-- extra : rebase_source : d55a62f6f31b6815e7f94f10761e4208ad03379b
This commit is contained in:
parent
7f2f5b31e2
commit
38dd5f92e5
@ -955,6 +955,18 @@ def build_task(config, tasks):
|
||||
attributes = task.get('attributes', {})
|
||||
attributes['run_on_projects'] = task.get('run-on-projects', ['all'])
|
||||
|
||||
# Set MOZ_AUTOMATION on all jobs.
|
||||
if task['worker']['implementation'] in (
|
||||
'generic-worker',
|
||||
'docker-engine',
|
||||
'native-engine',
|
||||
'docker-worker',
|
||||
):
|
||||
payload = task_def.get('payload')
|
||||
if payload:
|
||||
env = payload.setdefault('env', {})
|
||||
env['MOZ_AUTOMATION'] = '1'
|
||||
|
||||
yield {
|
||||
'label': task['label'],
|
||||
'task': task_def,
|
||||
|
Loading…
Reference in New Issue
Block a user