mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[FIX] runbot: local cleanup
This commit is contained in:
parent
d722160247
commit
faef017a25
@ -622,6 +622,7 @@ class BuildResult(models.Model):
|
||||
if candidate_for_partial_gc:
|
||||
for dest in _filter(candidate_for_partial_gc, label='workspace'):
|
||||
build_dir = Path(builds_dir) / dest
|
||||
gcstamp = build_dir / '.gcstamp'
|
||||
for bdir_file in build_dir.iterdir():
|
||||
if bdir_file.is_dir() and bdir_file.name not in ('logs', 'tests'):
|
||||
shutil.rmtree(bdir_file)
|
||||
|
Loading…
Reference in New Issue
Block a user