[Buildbot-devel] Buildbot master configurations don't work

Diane Maple dianemaple76 at yahoo.com
Wed Sep 18 23:42:52 UTC 2013




Was there an answer to this question.


________________________________
 From: Yasser LEBON <yasser.lebon at gmail.com>
To: buildbot-devel at lists.sourceforge.net 
Sent: Wednesday, July 3, 2013 2:13 AM
Subject: [Buildbot-devel] Buildbot master configurations don't work
 


Hello, 


I try to setup multimaster mode with two buildbot master but I encoutered an error 'Unknown builder 'sample-builder' in scheduler 'test-scheduler' when trying to run the master1.cfg. 
My configurations:

master1.cfg
=================


# -*- python -*-
# ex: set syntax=python:
c = BuildmasterConfig = {}

# MULTIMASTER
c['multiMaster'] = True

# DATABASE
c['db'] = {
    'db_url' : 'mysql://buildbot:buildbot-password@localhost:3306/buildbot?max_idle=300',
    'db_poll_interval' : 30,
}

# STATUS
from buildbot.status import html
from buildbot.status.web import authz, auth

authz_cfg=authz.Authz(
    auth=auth.BasicAuth([("login","password")]),
    gracefulShutdown = False,
    forceBuild = 'auth',
)
c['status'] = []
c['status'].append(html.WebStatus(http_port=9090, authz=authz_cfg))

# SCHEDULERS
from buildbot.schedulers.forcesched import ForceScheduler
c['schedulers'] = []
c['schedulers'].append(
   ForceScheduler(
     name="test-scheduler",builderNames=["sample-builder"]
   )
)


master2.cfg
=========

# -*- python -*-
# ex: set syntax=python:

# MASTER
c = BuildmasterConfig = {}

# MULTIMASTER
c['multiMaster'] = True

# SLAVES
from buildbot.buildslave import BuildSlave
c['slavePortnum'] = 9999
c['slaves'] = [BuildSlave("slave-test", "pass")]

# BUILDER
from buildbot.process.factory import BuildFactory
from buildbot.steps.shell import ShellCommand
from buildbot.config import BuilderConfig

sample_build = BuildFactory()
sample_build.addStep(ShellCommand(name="deployment test", workdir="build", command=["ls"]))
c['builders'] = [
        BuilderConfig(
                name="sample-builder", slavenames=["slave-test"], factory=sample_build
        ),
]

c['db'] = {
    'db_url' : 'mysql://buildbot:buildbot-password@localhost:3306/buildbot?max_idle=300',
    'db_poll_interval' : 30,
}

Thanks for your help,
Regards

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20130918/1b49d0e9/attachment.html>


More information about the devel mailing list