<div dir="ltr"><div><div><div><div>Hi,<br></div>I am trying to setup a build with multiple repositories:<br></div><div style="margin-left:40px">1. There are three change sources, let's say repo1, repo2 and repo3, I want buildbot to monitor dev branch on these sources<br>2. When any of these repositories changes, I wan to buildbot to start build in a forth repository(repo4) on master branch<br><br></div></div>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.<br></div><div><br></div>My change_source settings are like this:<br><br><div><div><div style="margin-left:40px">c['change_source'] = []<br><br>repo1 = changes.GitPoller(<br>        'git@git.example.net:repo1',<br>        workdir='eisalt', branch='dev',<br>        pollinterval=60, pollAtLaunch=True, project='builtbot_example')<br><br>c['change_source'].append(repo1)<br><br>repo2 = changes.GitPoller(<br>        'git@git.example.net:repo2',<br>        workdir='eisalt', branch='dev',<br>        pollinterval=60, pollAtLaunch=True, project='builtbot_example')<br><br>c['change_source'].append(repo2)<br><br>repo3 = changes.GitPoller(<br>        'git@git.example.net:repo3',<br>        workdir='eisalt', branch='dev',<br>        pollinterval=60, pollAtLaunch=True, project='builtbot_example')<br><br>c['change_source'].append(repo3)<br></div><br></div><div>My Schedulers settings:<br><br><div style="margin-left:40px">test_filter = util.ChangeFilter(project='builtbot_example')<br>c['schedulers'] = []<br>c['schedulers'].append(schedulers.AnyBranchScheduler(<br>                            name="all",<br>                            change_filter=test_filter,<br>                            treeStableTimer=60,<br>                            builderNames=["test_worker"]))<br></div><br>My BUILDERS settings:<br><br><div style="margin-left:40px">factory = util.BuildFactory()<br>factory.workdir = "O:\\Prj\\repo4"<br># check out the source<br>factory.addStep(steps.Git(repourl='git@git.example.net:repo4', mode='incremental', branch='master'))<br></div><br></div><div>When I push a commit to repo1, repo2 or repo3, the build starts but fails immediately, the error from the log is: <br></div><div> <br clear="all"><pre class="gmail-select-content gmail-log" style="margin-left:40px"><span class="gmail-no-wrap gmail-log_e"><span class="gmail-">fatal: Couldn't find remote ref dev<br></span></span></pre><pre class="gmail-select-content gmail-log">It looks like buildbot keeps pulling from the dev branch,<br></pre><pre class="gmail-select-content gmail-log">am I doing it right?<br><br></pre><pre class="gmail-select-content gmail-log">Thanks in advance<br></pre><pre class="gmail-select-content gmail-log"><span class="gmail-no-wrap gmail-log_e"><span class="gmail-"></span></span></pre><div><div><div><div><div><div><div class="gmail_signature"><div><div><div><div><span style="font-size:12.8px">Song Tang</span></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>