зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1204346 - Add a white-list of caches for try server jobs; r=garndt
This commit is contained in:
Родитель
60ffe96bea
Коммит
0b977d83e4
|
@ -194,10 +194,15 @@ def remove_caches_from_task(task):
|
|||
|
||||
:param task: task definition.
|
||||
"""
|
||||
whitelist = [
|
||||
"tc-vcs",
|
||||
"tc-vcs-public-source",
|
||||
"tooltool-cache",
|
||||
]
|
||||
try:
|
||||
caches = task["task"]["payload"]["cache"]
|
||||
for cache in caches.keys():
|
||||
if cache != "tc-vcs":
|
||||
if cache not in whitelist:
|
||||
caches.pop(cache)
|
||||
except KeyError:
|
||||
pass
|
||||
|
|
Загрузка…
Ссылка в новой задаче