Bug 1418671: Use a separate cache for builds that checkout comm-central; r?gps
MozReview-Commit-ID: DxmPkgvQYnp
--- a/taskcluster/taskgraph/transforms/job/common.py
+++ b/taskcluster/taskgraph/transforms/job/common.py
@@ -80,16 +80,21 @@ def support_vcs_checkout(config, job, ta
"""
level = config.params['level']
# native-engine does not support caches (yet), so we just do a full clone
# every time :(
if job['worker']['implementation'] in ('docker-worker', 'docker-engine'):
name = 'level-%s-checkouts' % level
+ # comm-central checkouts need their own cache, because clobber won't
+ # remove the comm-central checkout
+ if job['run'].get('comm-checkout', False):
+ name += '-comm'
+
# Sparse checkouts need their own cache because they can interfere
# with clients that aren't sparse aware.
if sparse:
name += '-sparse'
taskdesc['worker'].setdefault('caches', []).append({
'type': 'persistent',
'name': name,