Mercurial > hg > autobot
diff autobot/template/restart_buildbot.py @ 187:bba97450cbc2
* update example and templates
* more documentation
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 01 Feb 2011 21:17:00 -0800 |
parents | 42b82c5bb03d |
children | 2cda5a640ae7 |
line wrap: on
line diff
--- a/autobot/template/restart_buildbot.py Tue Feb 01 19:19:36 2011 -0800 +++ b/autobot/template/restart_buildbot.py Tue Feb 01 21:17:00 2011 -0800 @@ -9,7 +9,8 @@ os.chdir(os.path.abspath(os.path.dirname(sys.argv[0]))) -if {{debug}}: +debug = {{debug}} +if debug: call(['rm', '-f', 'master/twistd.log']) call(['rm', '-f', 'slave/twistd.log']) call(['rm', '-rf', 'slave/full']) @@ -17,5 +18,6 @@ call(['buildslave', 'stop', 'slave']) call(['buildbot', 'start', 'master']) call(['buildslave', 'start', 'slave']) -#sleep(5) -#call(['bash', '${slave}/force-build.sh'] + sys.argv[1:]) + +# could force a build here +# buildbot sendchange ...