зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1535171 - fix missed uses of no-argument get_root_url r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D23416 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
666729e3c4
Коммит
aa3ebe8988
|
@ -55,7 +55,7 @@ class MachCommands(MachCommandBase):
|
|||
import taskcluster_urls
|
||||
from taskgraph.util.taskcluster import get_root_url
|
||||
return taskcluster_urls.api(
|
||||
get_root_url(), 'queue', 'v1', 'task/{}/runs/{}/artifacts/{}'.format(
|
||||
get_root_url(False), 'queue', 'v1', 'task/{}/runs/{}/artifacts/{}'.format(
|
||||
os.environ['TASK_ID'], os.environ['RUN_ID'], artifactdir))
|
||||
else:
|
||||
return os.path.join(self.topobjdir, objdir)
|
||||
|
|
|
@ -218,9 +218,8 @@ Task group: [{task_group_id}](https://tools.taskcluster.net/groups/{task_group_i
|
|||
|
||||
subject = '{} Build of {} {} build {}'.format(subject_prefix, product, version, build_number)
|
||||
|
||||
notify_options = optionsFromEnvironment({'rootUrl': get_root_url()})
|
||||
if 'TASKCLUSTER_PROXY_URL' in os.environ:
|
||||
notify_options['rootUrl'] = os.environ['TASKCLUSTER_PROXY_URL']
|
||||
use_proxy = 'TASKCLUSTER_PROXY_URL' in os.environ
|
||||
notify_options = optionsFromEnvironment({'rootUrl': get_root_url(use_proxy)})
|
||||
notify = Notify(notify_options)
|
||||
for address in addresses:
|
||||
notify.email({
|
||||
|
|
Загрузка…
Ссылка в новой задаче