Bug 1415621: Support checking comm-central in mozharness windows builds. draft
authorTom Prince <mozilla@hocat.ca>
Tue, 24 Oct 2017 13:53:08 -0600
changeset 695842 12213932003200d61abb11b9ba1568e993c0645c
parent 695841 63537bd0105ef2f937d87b0abbc36516eaf5bec9
child 695843 28464ee452e7712a8be890ee78c9ede801772f91
push id88563
push userbmo:mozilla@hocat.ca
push dateThu, 09 Nov 2017 22:42:20 +0000
bugs1415621
milestone58.0a1
Bug 1415621: Support checking comm-central in mozharness windows builds. MozReview-Commit-ID: ChFc93tzoEE
taskcluster/taskgraph/transforms/job/mozharness.py
--- a/taskcluster/taskgraph/transforms/job/mozharness.py
+++ b/taskcluster/taskgraph/transforms/job/mozharness.py
@@ -263,16 +263,25 @@ def mozharness_on_generic_worker(config,
         ]
 
     hg_commands = checkout_repo(
         base_repo=env['GECKO_BASE_REPOSITORY'],
         head_repo=env['GECKO_HEAD_REPOSITORY'],
         head_rev=env['GECKO_HEAD_REV'],
         path='.\\build\\src')
 
+    if run['comm-checkout']:
+        hg_commands.extend(
+            checkout_repo(
+                base_repo=env['COMM_BASE_REPOSITORY'],
+                head_repo=env['COMM_HEAD_REPOSITORY'],
+                head_rev=env['COMM_HEAD_REV'],
+                path='.\\build\\src\\comm')
+        )
+
     worker['command'] = []
     if taskdesc.get('needs-sccache'):
         worker['command'].extend([
             # Make the comment part of the first command, as it will help users to
             # understand what is going on, and why these steps are implemented.
             dedent('''\
             :: sccache currently uses the full compiler commandline as input to the
             :: cache hash key, so create a symlink to the task dir and build from