[Buildbot-commits] [Buildbot] #301: Allow a single buildslave to service multiple buildmasters
Buildbot
nobody at buildbot.net
Tue Apr 12 00:19:14 UTC 2011
#301: Allow a single buildslave to service multiple buildmasters
------------------------+-----------------------
Reporter: dustin | Owner: sridhar
Type: enhancement | Status: assigned
Priority: major | Milestone: 1.0.+
Version: 0.7.7 | Resolution:
Keywords: |
------------------------+-----------------------
Comment (by tom.prince):
A really stupid way to do this is right now is just edit the .tac file to
start multiple slaves.
Obviously, they don't communicate at all, and they probably handle
signals, and shutdown requests strangely. Starting multiple bots in
BuildSlave would be rather trivial. The tricky part is figuring out how to
handle locks and shutdown requests.
{{{
buildmaster_host = 'master1'
port = ...
slavename = 'slave_name'
passwd = '...'
keepalive = 600
usepty = 0
umask = None
maxdelay = 300
slavedir = 'master1'
s = BuildSlave(buildmaster_host, port, slavename, passwd,
os.path.join(basedir,slavedir),
keepalive, usepty, umask=umask, maxdelay=maxdelay)
s.setServiceParent(application)
buildmaster_host = 'master2'
port = ...
slavename = 'slave_name'
passwd = '...'
keepalive = 600
usepty = 0
umask = None
maxdelay = 300
slavedir = 'master2'
s = BuildSlave(buildmaster_host, port, slavename, passwd,
os.path.join(basedir, slavedir),
keepalive, usepty, umask=umask, maxdelay=maxdelay)
s.setServiceParent(application)
}}}
--
Ticket URL: <http://trac.buildbot.net/ticket/301#comment:15>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list