зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1278999 - handle generic worker style artifacts (list not dictionary). r=wcosta
--HG-- extra : rebase_source : 975894206800aa9261f0683ffcd9948f0da4d408
This commit is contained in:
Родитель
dd368c9569
Коммит
75d5c0359a
|
@ -204,7 +204,10 @@ def set_expiration(task, timestamp):
|
|||
except KeyError:
|
||||
return
|
||||
|
||||
for artifact in artifacts.values():
|
||||
# for docker-worker, artifacts is a dictionary
|
||||
# for generic-worker, artifacts is a list
|
||||
# for taskcluster-worker, it will depend on what we do in artifacts plugin
|
||||
for artifact in artifacts.values() if hasattr(artifacts, "values") else artifacts:
|
||||
artifact['expires'] = timestamp
|
||||
|
||||
def add_treeherder_revision_info(task, revision, revision_hash):
|
||||
|
|
Загрузка…
Ссылка в новой задаче