if self.has_finished():
return
- # On success, update all repositories
- if not job.has_failed():
- await self._update_repos()
-
# If all jobs have finished, the build has finished
if all((j.has_finished() for j in self.jobs)):
return await self.finished(success=True)
This method should be called if the repositories should be updated
"""
await asyncio.gather(
- *(repo.has_changed() for repo in self.repos),
+ *(repo.update() for repo in self.repos),
)
## Bugs
log=await self.tail_log(100),
)
+ # On success, update all repositories
+ if success:
+ await self.build._update_repos()
+
# Propagate any changes to the build
return await self.build._job_finished(job=self)