Bug 1595632 - don't hardcode TC root url for release start emails, r=Callek
authorNick Thomas <nthomas@mozilla.com>
Thu, 14 Nov 2019 03:15:51 +0000
changeset 501879 7369676b8ab5d4ea0d0461299e0e8a10361a612c
parent 501878 aa0f3547216405f94d08eb7e93bb52675e0de413
child 501880 e7837d7a78c67fb122f6f4685eb0e2f06841b621
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersCallek
bugs1595632
milestone72.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1595632 - don't hardcode TC root url for release start emails, r=Callek Differential Revision: https://phabricator.services.mozilla.com/D52947
python/mozrelease/mozrelease/buglist_creator.py
--- a/python/mozrelease/mozrelease/buglist_creator.py
+++ b/python/mozrelease/mozrelease/buglist_creator.py
@@ -196,20 +196,21 @@ def email_release_drivers(
 ):
     # Send an email to the mailing after the build
     email_buglist_string = create_bugs_url(product, version, revision, repo=repo)
 
     content = """\
 A new build has been started:
 
 Commit: [{revision}]({repo}/rev/{revision})
-Task group: [{task_group_id}](https://tools.taskcluster.net/groups/{task_group_id})
+Task group: [{task_group_id}]({root_url}/tasks/groups/{task_group_id})
 
 {email_buglist_string}
 """.format(repo=repo, revision=revision,
+           root_url=os.environ['TASKCLUSTER_ROOT_URL'],
            task_group_id=task_group_id,
            email_buglist_string=email_buglist_string)
 
     # On r-d, we prefix the subject of the email in order to simplify filtering
     subject_prefix = ""
     if product in {"fennec"}:
         subject_prefix = "[mobile] "
     if product in {"firefox", "devedition"}: