Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: scripts/slave/zip_build.py

Issue 1687843002: Prune archives uploaded to google storage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/zip_build.py
diff --git a/scripts/slave/zip_build.py b/scripts/slave/zip_build.py
index 98039e095b1e3a135ca7c7e64bde5468c5255416..a756ba435481d8112e6d2103b3eef48d481aa63d 100755
--- a/scripts/slave/zip_build.py
+++ b/scripts/slave/zip_build.py
@@ -350,7 +350,11 @@ def Archive(options):
zip_base, zip_ext, versioned_file = MakeVersionedArchive(
zip_file, version_suffix, options)
- PruneOldArchives(staging_dir, zip_base, zip_ext, prune_limit=10)
+ prune_limit = 10
+ if options.build_url.startswith('gs://'):
+ # Don't keep builds lying around when uploading them to google storage.
+ prune_limit = 3
+ PruneOldArchives(staging_dir, zip_base, zip_ext, prune_limit=prune_limit)
# Update the latest revision file in the staging directory
# to allow testers to figure out the latest packaged revision
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698