Skip to content

Commit

Permalink
provide bundled build slaves as plugins
Browse files Browse the repository at this point in the history
Conflicts:
	master/buildbot/interfaces.py
  • Loading branch information
Mikhail Sobolev committed Jan 13, 2015
1 parent ac32e34 commit 399672a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/interfaces.py
Expand Up @@ -1147,7 +1147,7 @@ def logChunk(build, step, log, channel, text):
pass


class IBuildSlave(Interface):
class IBuildSlave(IPlugin):
# this is a marker interface for the BuildSlave class
pass

Expand Down
4 changes: 4 additions & 0 deletions master/buildbot/plugins/__init__.py
Expand Up @@ -18,8 +18,12 @@
"""

from buildbot.plugins.db import get_plugins
from buildbot.interfaces import IBuildSlave
from buildbot.interfaces import IChangeSource
from buildbot.interfaces import IScheduler

# Names here match the names of the corresponding Buildbot module, hence
# 'changes', 'schedulers', but 'buildslave'
changes = get_plugins('change_source', IChangeSource)
schedulers = get_plugins('scheduler', IScheduler)
buildslave = get_plugins('build_slave', IBuildSlave)
6 changes: 6 additions & 0 deletions master/setup.py
Expand Up @@ -226,6 +226,12 @@ def define_plugin_entries(groups):
'Periodic', 'Nightly', 'NightlyTriggerable']),
('buildbot.schedulers.trysched', [
'Try_Jobdir', 'Try_Userpass'])
]),
('buildbot.build_slave', [
('buildbot.buildslave.base', ['BuildSlave']),
('buildbot.buildslave.ec2', ['EC2LatentBuildSlave']),
('buildbot.buildslave.libvirt', ['LibVirtSlave']),
('buildbot.buildslave.openstack', ['OpenStackLatentBuildSlave'])
])
])
}
Expand Down

0 comments on commit 399672a

Please sign in to comment.