Bug 1492664 - set TASKCLUSTER_ROOT_URL for mach build, too; r=froydnj
☠☠ backed out by d0e13414d651 ☠ ☠
authorDustin J. Mitchell <dustin@mozilla.com>
Wed, 19 Dec 2018 14:00:19 +0000
changeset 451434 a972d6b4434edcbce1f93fb1629a6b81ca7bb585
parent 451433 5ea6f03f845e49d503f5d0283557f54561c41654
child 451435 9c35dd209c6b407bc3a45ce7b4c27272ef1bb486
push id35238
push userrmaries@mozilla.com
push dateThu, 20 Dec 2018 05:04:43 +0000
treeherdermozilla-central@f42265a0fe6f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1492664
milestone66.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 1492664 - set TASKCLUSTER_ROOT_URL for mach build, too; r=froydnj
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -41,16 +41,18 @@ from mozbuild.base import (
     MozbuildObject,
 )
 from mozbuild.util import ensureParentDir
 
 from mozbuild.backend import (
     backends,
 )
 
+import taskgraph
+
 
 BUILD_WHAT_HELP = '''
 What to build. Can be a top-level make target or a relative directory. If
 multiple options are provided, they will be built serially. Takes dependency
 information from `topsrcdir/build/dumbmake-dependencies` to build additional
 targets as needed. BUILDING ONLY PARTS OF THE TREE CAN RESULT IN BAD TREE
 STATE. USE AT YOUR OWN RISK.
 '''.strip()
@@ -1252,16 +1254,17 @@ class PackageFrontend(MachCommandBase):
         help='Where to fetch and install artifacts from.  Can be omitted, in '
             'which case the current hg repository is inspected; an hg revision; '
             'a remote URL; or a local file.',
         default=None)
     @CommandArgument('--skip-cache', action='store_true',
         help='Skip all local caches to force re-fetching remote artifacts.',
         default=False)
     def artifact_install(self, source=None, skip_cache=False, tree=None, job=None, verbose=False):
+        taskgraph.set_root_url_env()
         self._set_log_level(verbose)
         artifacts = self._make_artifacts(tree=tree, job=job, skip_cache=skip_cache)
 
         return artifacts.install_from(source, self.distdir)
 
     @ArtifactSubCommand('artifact', 'clear-cache',
         'Delete local artifacts and reset local artifact cache.')
     def artifact_clear_cache(self, tree=None, job=None, verbose=False):