Hi Song, What you need to setup is multiple codebase. Each of your git step can then be assigned to one codebase so that it only pull the changes belonging to its codebase.
Regards On Mon, Apr 10, 2017 at 7:41 AM Song Tang <[email protected]> wrote: > 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( > '[email protected]:repo1', > workdir='eisalt', branch='dev', > pollinterval=60, pollAtLaunch=True, project='builtbot_example') > > c['change_source'].append(repo1) > > repo2 = changes.GitPoller( > '[email protected]:repo2', > workdir='eisalt', branch='dev', > pollinterval=60, pollAtLaunch=True, project='builtbot_example') > > c['change_source'].append(repo2) > > repo3 = changes.GitPoller( > '[email protected]: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='[email protected]: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 > _______________________________________________ > users mailing list > [email protected] > https://lists.buildbot.net/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] https://lists.buildbot.net/mailman/listinfo/users
