[users at bb.net] multiple repos build fails at fetching from wrong branch

Song Tang song.tang at yobibyte.com.au
Mon Apr 10 05:41:33 UTC 2017


Hi,
I am trying to setup a build with multiple repositories:
1. There are three change sources, let's say repo1, repo2 and repo3, I want
buildbot to monitor dev branch on these sources
2. When any of these repositories changes, I wan to buildbot to start build
in a forth repository(repo4) on master branch

I can set up buildbot to start the build, but it always pulls from dev
branch on repo4, and because there is no dev branch in repo4, the build
fails.

My change_source settings are like this:

c['change_source'] = []

repo1 = changes.GitPoller(
        'git at git.example.net:repo1',
        workdir='eisalt', branch='dev',
        pollinterval=60, pollAtLaunch=True, project='builtbot_example')

c['change_source'].append(repo1)

repo2 = changes.GitPoller(
        'git at git.example.net:repo2',
        workdir='eisalt', branch='dev',
        pollinterval=60, pollAtLaunch=True, project='builtbot_example')

c['change_source'].append(repo2)

repo3 = changes.GitPoller(
        'git at git.example.net:repo3',
        workdir='eisalt', branch='dev',
        pollinterval=60, pollAtLaunch=True, project='builtbot_example')

c['change_source'].append(repo3)

My Schedulers settings:

test_filter = util.ChangeFilter(project='builtbot_example')
c['schedulers'] = []
c['schedulers'].append(schedulers.AnyBranchScheduler(
                            name="all",
                            change_filter=test_filter,
                            treeStableTimer=60,
                            builderNames=["test_worker"]))

My BUILDERS settings:

factory = util.BuildFactory()
factory.workdir = "O:\\Prj\\repo4"
# check out the source
factory.addStep(steps.Git(repourl='git at git.example.net:repo4',
mode='incremental', branch='master'))

When I push a commit to repo1, repo2 or repo3, the build starts but fails
immediately, the error from the log is:


fatal: Couldn't find remote ref dev

It looks like buildbot keeps pulling from the dev branch,

am I doing it right?

Thanks in advance

Song Tang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20170410/f1cf112b/attachment.html>


More information about the users mailing list