зеркало из https://github.com/mozilla/ci-recipes.git
Check index for shadow scheduler artifacts before using ActiveData
This commit is contained in:
Родитель
788ea3dfbd
Коммит
a9648b2d9c
|
@ -333,10 +333,15 @@ class Push:
|
|||
Returns:
|
||||
list: All task labels that would have been scheduler or None.
|
||||
"""
|
||||
if name not in self._shadow_scheduler_artifacts:
|
||||
return None
|
||||
# First look for an index.
|
||||
url = SHADOW_SCHEDULER_ARTIFACT_URL.format(rev=self.rev, name=name)
|
||||
r = requests.get(url)
|
||||
|
||||
if r.status_code != 200:
|
||||
if name not in self._shadow_scheduler_artifacts:
|
||||
return None
|
||||
r = requests.get(self._shadow_scheduler_artifacts[name])
|
||||
|
||||
r = requests.get(self._shadow_scheduler_artifacts[name])
|
||||
tasks = r.text
|
||||
return set(tasks.splitlines())
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче