mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1543893 - Set TASKCLUSTER_ROOT_URL on workers that don't set it. r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D39151 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
321d7f8f17
commit
b9fe30993d
@ -22,6 +22,7 @@ import attr
|
|||||||
from mozbuild.util import memoize
|
from mozbuild.util import memoize
|
||||||
from taskgraph.util.attributes import TRUNK_PROJECTS
|
from taskgraph.util.attributes import TRUNK_PROJECTS
|
||||||
from taskgraph.util.hash import hash_path
|
from taskgraph.util.hash import hash_path
|
||||||
|
from taskgraph.util.taskcluster import get_root_url
|
||||||
from taskgraph.util.treeherder import split_symbol
|
from taskgraph.util.treeherder import split_symbol
|
||||||
from taskgraph.transforms.base import TransformSequence
|
from taskgraph.transforms.base import TransformSequence
|
||||||
from taskgraph.util.keyed_by import evaluate_keyed_by
|
from taskgraph.util.keyed_by import evaluate_keyed_by
|
||||||
@ -1877,6 +1878,10 @@ def build_task(config, tasks):
|
|||||||
env = payload.setdefault('env', {})
|
env = payload.setdefault('env', {})
|
||||||
env['MOZ_AUTOMATION'] = '1'
|
env['MOZ_AUTOMATION'] = '1'
|
||||||
|
|
||||||
|
# Set TASKCLUSTER_ROOT_URL on workers that don't set it
|
||||||
|
if provisioner_id == 'terraform-packet':
|
||||||
|
env['TASKCLUSTER_ROOT_URL'] = get_root_url(False)
|
||||||
|
|
||||||
yield {
|
yield {
|
||||||
'label': task['label'],
|
'label': task['label'],
|
||||||
'task': task_def,
|
'task': task_def,
|
||||||
|
Loading…
Reference in New Issue
Block a user