[Buildbot-devel] GitPoller headaches (0.9.0b1)

Giorgio Valoti giorgio_v at me.com
Mon Jul 20 12:47:05 UTC 2015


Hi,

I configured BuildBot to with two builder for two different repositories
(say A and B) and two different GitPoller scheduler but I think I’m
doing something horribly wrong because when I push to repo A, both the
builders get triggered; same with repo B.

Here is the relevant portions of the configuration. I have just redacted
some of info to protect the innocents.

####### CHANGESOURCES
c['change_source'] = []

c['change_source'].append(changes.GitPoller(
    '<osk-repo-url>',
    branches=['master'],
    project='OSK'
))
c['change_source'].append(changes.GitPoller(
    '<orin-repo-url>',
    branches=['master'],
    project='ORIN'
))


####### BUILDERS
c['builders'] = []

orin_builder_factory = BuildFactory()
orin_builder_factory.addStep(
    steps.Git(
        repourl='<orin-repo-url>',
        mode='full',
        method='clobber'
    )
)
orin_builder_factory.addStep(...)
c['builders'].append(
    BuilderConfig(
        name='orin_builder',
        slavenames=[...],
        factory=orin_builder_factory
    )
)
del orin_builder_factory

osk_builder_factory = BuildFactory()
osk_builder_factory.addStep(
    steps.Git(
        repourl='<osk-repo-url>',
        mode='full',
        method='clobber'
    )
)
osk_builder_factory.addStep(...)
c['builders'].append(
    BuilderConfig(
        name='osk_builder',
        slavenames=[...],
        factory=osk_builder_factory
    )
)
del osk_builder_factory

####### SCHEDULERS
c['schedulers'] = []

c['schedulers'].append(schedulers.SingleBranchScheduler(
    change_filter=filter.ChangeFilter(
        branch='master',
    ),
    builderNames=['orin_builder'],
    name='orin_default_scheduler',
))
c['schedulers'].append(schedulers.ForceScheduler(
    name         = 'orin_manual_scheduler',
    builderNames = ['orin_builder'],
    reason       = util.StringParameter(
        name     = 'reason',
        label    = 'reason:',
        required = True,
        size     = 80
    ),
    codebases    = ['<orin-repo-url>']
))

c['schedulers'].append(schedulers.SingleBranchScheduler(
    change_filter=filter.ChangeFilter(
        branch='master',
    ),
    builderNames=['osk_builder'],
    name='osk_default_scheduler',
))
c['schedulers'].append(schedulers.ForceScheduler(
    name         = 'osk_manual_scheduler',
    builderNames = ['osk_builder'],
    reason       = util.StringParameter(
        name     = 'reason',
        label    = 'reason:',
        required = True,
        size     = 80
    ),
    codebases    = ['<osk-repo-url>']
))

Thank you in advance for any help.

--
Giorgio Valoti





More information about the devel mailing list