Bug 1535487 - determine rootUrl directly in buglist creator r=tomprince

Differential Revision: https://phabricator.services.mozilla.com/D23601

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dustin J. Mitchell 2019-03-15 15:09:45 +00:00
Родитель dc570ea41b
Коммит eacad2e343
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -11,7 +11,6 @@ import re
import requests
from taskcluster.notify import Notify
from taskcluster import optionsFromEnvironment
from taskgraph.util.taskcluster import get_root_url
from operator import itemgetter
from mozilla_version.gecko import GeckoVersion
@ -218,8 +217,12 @@ Task group: [{task_group_id}](https://tools.taskcluster.net/groups/{task_group_i
subject = '{} Build of {} {} build {}'.format(subject_prefix, product, version, build_number)
use_proxy = 'TASKCLUSTER_PROXY_URL' in os.environ
notify_options = optionsFromEnvironment({'rootUrl': get_root_url(use_proxy)})
# use proxy if configured, otherwise local credentials from env vars
if 'TASKCLUSTER_PROXY_URL' in os.environ:
notify_options = {'rootUrl': os.environ['TASKCLUSTER_PROXY_URL']}
else:
notify_options = optionsFromEnvironment()
notify = Notify(notify_options)
for address in addresses:
notify.email({