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

Unified Diff: tools/bots/bot.py

Issue 197313010: Initial refactorings to support archiving the src and debian package builds. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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 | tools/bots/bot_utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bots/bot.py
===================================================================
--- tools/bots/bot.py (revision 33696)
+++ tools/bots/bot.py (working copy)
@@ -185,16 +185,19 @@
return name, True
-def Clobber():
+def Clobber(force=None):
"""
Clobbers the builder before we do the build, if appropriate.
- mode: either 'debug' or 'release'
"""
- if os.environ.get(BUILDER_CLOBBER) != "1":
+ if os.environ.get(BUILDER_CLOBBER) != "1" and not force:
return
+ clobber_string = 'Clobber'
+ if force:
+ clobber_string = 'Clobber(always)'
- with BuildStep('Clobber'):
+ with BuildStep(clobber_string):
cmd = [sys.executable,
'./tools/clean_output_directory.py']
print 'Clobbering %s' % (' '.join(cmd))
« no previous file with comments | « no previous file | tools/bots/bot_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698