[Buildbot-devel] CVS_RSH environment variable

Brian Warner warner-buildbot at lothar.com
Tue Mar 28 09:23:37 UTC 2006


> Sticking it in the makefile is perhaps a better idea, since the same 
> environment will be shared  by the command line usage and the cron usage.
> 
> I wonder if there's a place that environment vars can be placed so that 
> they are loaded by both cron and the commandline?

I use the 'Makefile.buildbot' for this purpose:

 1: copy or rename Makefile.sample to Makefile.buildbot
 2: edit the 'start' target to change it from:
     twistd --no_save -y buildbot.tac
   to:
     CVS_RSH=ssh twistd --no_save -y buildbot.tac
 3: use 'buildbot start BASEDIR to start the buildbot, both manually from
    a shell and from your crontab entry

You can also put environment variable settings in lines like 'export
CVS_RSH=ssh' at the top of Makefile.buildbot . The 'buildbot start' command
looks in the target directory for a Makefile.buildbot, and if it finds one,
then it does a 'make -C BASEDIR -f Makefile.buildbot start' instead of
running twistd directly, so you can use it to run all sorts of extra startup
commands.


cheers,
 -Brian




More information about the devel mailing list