<div dir="ltr">Hi Song,<div><br></div><div>What you need to setup is multiple codebase.</div><div>Each of your git step can then be assigned to one codebase so that it only pull the changes belonging to its codebase.</div><div><br></div><div>Regards</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 10, 2017 at 7:41 AM Song Tang <<a href="mailto:song.tang@yobibyte.com.au">song.tang@yobibyte.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">Hi,<br class="gmail_msg"></div>I am trying to setup a build with multiple repositories:<br class="gmail_msg"></div><div style="margin-left:40px" class="gmail_msg">1. There are three change sources, let's say repo1, repo2 and repo3, I want buildbot to monitor dev branch on these sources<br class="gmail_msg">2. When any of these repositories changes, I wan to buildbot to start build in a forth repository(repo4) on master branch<br class="gmail_msg"><br class="gmail_msg"></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 class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div>My change_source settings are like this:<br class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div style="margin-left:40px" class="gmail_msg">c['change_source'] = []<br class="gmail_msg"><br class="gmail_msg">repo1 = changes.GitPoller(<br class="gmail_msg">        'git@git.example.net:repo1',<br class="gmail_msg">        workdir='eisalt', branch='dev',<br class="gmail_msg">        pollinterval=60, pollAtLaunch=True, project='builtbot_example')<br class="gmail_msg"><br class="gmail_msg">c['change_source'].append(repo1)<br class="gmail_msg"><br class="gmail_msg">repo2 = changes.GitPoller(<br class="gmail_msg">        'git@git.example.net:repo2',<br class="gmail_msg">        workdir='eisalt', branch='dev',<br class="gmail_msg">        pollinterval=60, pollAtLaunch=True, project='builtbot_example')<br class="gmail_msg"><br class="gmail_msg">c['change_source'].append(repo2)<br class="gmail_msg"><br class="gmail_msg">repo3 = changes.GitPoller(<br class="gmail_msg">        'git@git.example.net:repo3',<br class="gmail_msg">        workdir='eisalt', branch='dev',<br class="gmail_msg">        pollinterval=60, pollAtLaunch=True, project='builtbot_example')<br class="gmail_msg"><br class="gmail_msg">c['change_source'].append(repo3)<br class="gmail_msg"></div><br class="gmail_msg"></div><div class="gmail_msg">My Schedulers settings:<br class="gmail_msg"><br class="gmail_msg"><div style="margin-left:40px" class="gmail_msg">test_filter = util.ChangeFilter(project='builtbot_example')<br class="gmail_msg">c['schedulers'] = []<br class="gmail_msg">c['schedulers'].append(schedulers.AnyBranchScheduler(<br class="gmail_msg">                            name="all",<br class="gmail_msg">                            change_filter=test_filter,<br class="gmail_msg">                            treeStableTimer=60,<br class="gmail_msg">                            builderNames=["test_worker"]))<br class="gmail_msg"></div><br class="gmail_msg">My BUILDERS settings:<br class="gmail_msg"><br class="gmail_msg"><div style="margin-left:40px" class="gmail_msg">factory = util.BuildFactory()<br class="gmail_msg">factory.workdir = "O:\\Prj\\repo4"<br class="gmail_msg"># check out the source<br class="gmail_msg">factory.addStep(steps.Git(repourl='git@git.example.net:repo4', mode='incremental', branch='master'))<br class="gmail_msg"></div><br class="gmail_msg"></div><div class="gmail_msg">When I push a commit to repo1, repo2 or repo3, the build starts but fails immediately, the error from the log is: <br class="gmail_msg"></div><div class="gmail_msg"> <br clear="all" class="gmail_msg"><pre class="m_-4048733259671409138gmail-select-content m_-4048733259671409138gmail-log gmail_msg" style="margin-left:40px"><span class="m_-4048733259671409138gmail-no-wrap m_-4048733259671409138gmail-log_e gmail_msg"><span class="m_-4048733259671409138gmail- gmail_msg">fatal: Couldn't find remote ref dev<br class="gmail_msg"></span></span></pre><pre class="m_-4048733259671409138gmail-select-content m_-4048733259671409138gmail-log gmail_msg">It looks like buildbot keeps pulling from the dev branch,<br class="gmail_msg"></pre><pre class="m_-4048733259671409138gmail-select-content m_-4048733259671409138gmail-log gmail_msg">am I doing it right?<br class="gmail_msg"><br class="gmail_msg"></pre><pre class="m_-4048733259671409138gmail-select-content m_-4048733259671409138gmail-log gmail_msg">Thanks in advance<br class="gmail_msg"></pre><pre class="m_-4048733259671409138gmail-select-content m_-4048733259671409138gmail-log gmail_msg"><span class="m_-4048733259671409138gmail-no-wrap m_-4048733259671409138gmail-log_e gmail_msg"><span class="m_-4048733259671409138gmail- gmail_msg"></span></span></pre><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="m_-4048733259671409138gmail_signature gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><span style="font-size:12.8px" class="gmail_msg">Song Tang</span></div></div></div></div></div></div>
</div></div></div></div></div></div></div></div>
_______________________________________________<br class="gmail_msg">
users mailing list<br class="gmail_msg">
<a href="mailto:users@buildbot.net" class="gmail_msg" target="_blank">users@buildbot.net</a><br class="gmail_msg">
<a href="https://lists.buildbot.net/mailman/listinfo/users" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.buildbot.net/mailman/listinfo/users</a></blockquote></div>