Bug 1497155 - Allow toolchain artifact downloading command to be run on Taskcluster. r=glandium.
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 11 Oct 2018 08:11:41 +0000
changeset 499131 42bd6d4455a4771a4f8ccc036a702816ab81e803
parent 499130 6c4930dac581c9d9acc581d66047d3a0d520e965
child 499132 e18103445f9e44d015e300cf9249f4ffa994ccc8
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1497155
milestone64.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 1497155 - Allow toolchain artifact downloading command to be run on Taskcluster. r=glandium. Differential Revision: https://phabricator.services.mozilla.com/D8360
python/mozbuild/mozbuild/mach_commands.py
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1415,17 +1415,17 @@ class PackageFrontend(MachCommandBase):
                                         record.digest)
                 records[record.filename] = DownloadRecord(
                     url, record.filename, record.size, record.digest,
                     record.algorithm, unpack=record.unpack,
                     version=record.version, visibility=record.visibility,
                     setup=record.setup)
 
         if from_build:
-            if 'TASK_ID' in os.environ:
+            if 'MOZ_AUTOMATION' in os.environ:
                 self.log(logging.ERROR, 'artifact', {},
                          'Do not use --from-build in automation; all dependencies '
                          'should be determined in the decision task.')
                 return 1
             from taskgraph.optimize import IndexSearch
             from taskgraph.parameters import Parameters
             params = Parameters(
                 level=os.environ.get('MOZ_SCM_LEVEL', '3'),