[Buildbot-devel] "master hostname" property for a buildStep?

Axel Hecht l10n.moz at googlemail.com
Thu Jan 10 23:22:37 UTC 2008

Actually, you need to jump through quite some loops to get python code
run on the slave. All the python code that you do in BuildStep
subclasses is actually run on the master.

You start running your custom code on the slave when you start
registering commands, and jump through the loops to actually
incorporate them into the slave python env on each slave. Basically,
if what I'm saying sounds like "what?", your python code is run on the


2008/1/11, john gale <john at smadness.com>:
> On Jan 10, 2008, at 3:05 PM, Axel Hecht wrote:
> > http://docs.python.org/lib/module-socket.html#l2h-3643 seems like it
> > could have python apis for that. Of course there's a whole lot that
> > could go wrong on the way, I guess, in terms of firewalls and NATs and
> > all that stuff.
> Thanks for the pointer.  I often forget though that the buildSteps are
> all run on the slave, so a simple 'gethostname' won't return the exact
> answer.  I suppose I could just do a shell command "grep
> buildmaster_host /build/buildbot.tac", which will give me the masters
> name.
>         ~ john
> =================
> support the arts!
> www.smadness.com
> updated October 12, 2005

More information about the devel mailing list