| Index: client/tools/buildbot_annotated_steps.py
|
| ===================================================================
|
| --- client/tools/buildbot_annotated_steps.py (revision 10787)
|
| +++ client/tools/buildbot_annotated_steps.py (working copy)
|
| @@ -138,7 +138,19 @@
|
| print 'Setting java home to'
|
| print java_home
|
|
|
| +def ClobberBuilder():
|
| + """ Clobber the builder before we do the build.
|
| + Args:
|
| + - mode: either 'debug' or 'release'
|
| + """
|
| + cmd = [sys.executable,
|
| + './tools/clean_output_directory.py']
|
| + print 'Clobbering %s' % (' '.join(cmd))
|
| + return subprocess.call(cmd, env=NO_COLOR_ENV)
|
|
|
| +def GetShouldClobber():
|
| + return os.environ.get(BUILDER_CLOBBER) == "1"
|
| +
|
| def main():
|
| print 'main'
|
| if len(sys.argv) == 0:
|
| @@ -149,6 +161,14 @@
|
| # Get at the top-level directory. This script is in client/tools
|
| os.chdir(os.path.abspath(os.path.join(scriptdir, os.pardir, os.pardir)))
|
|
|
| + if GetShouldClobber():
|
| + print '@@@BUILD_STEP Clobber@@@'
|
| + status = ClobberBuilder()
|
| + if status != 0:
|
| + print '@@@STEP_FAILURE@@@'
|
| + return status
|
| +
|
| +
|
| #TODO(sigmund): remove this indirection once we update our bots
|
| (name, version) = GetBuildInfo()
|
| if name.startswith('dart-editor'):
|
|
|