[Buildbot-devel] git branch support

Brian Fallik bfallik at litl.com
Fri Oct 3 12:23:42 UTC 2008


Hvve you seen buildbot ticket 340 [1]?  We're also having trouble
checking out a git branch, and I believe that bug is related.  My ugly
workaround was to download the branch delta (the addition of a single
file) via the FileDownload mechanism.  I doubt that's scalable for
most situations though.


[1] - http://buildbot.net/trac/ticket/340

On Thu, Oct 2, 2008 at 8:46 PM, Chad Metcalf <cmetcalf at archrock.com> wrote:
> Thanks in advance for any help. I checked trac tickets and the mailing
> list archives. This seems to be a similar/same issue as: http://article.gmane.org/gmane.comp.python.buildbot.devel/3622/match=git
> I'm having a hard time understanding how to setup my git branches in
> Buildbot.
> Our repo looks something like this:
> master
> origin/devel
> origin/release-1_0
> Developers clone the repo and track the branches by running
> git checkout -b devel origin/devel
> git checkout -b release-1_0 origin/release-1_0
> When the notifications come in from the git commit hook, I see master,
> devel, release-1_0. But when I use AnyBranchScheduler
> config['schedulers'].append(AnyBranchScheduler(name="quick_firmware",
>                                  branches=['master', 'devel'],
>                                  treeStableTimer=2*60,
>                                  fileIsImportant=firmwareChange,
>                                  builderNames=["firmware_compile"]))
> It works for the master but doesn't actually checkout the branch.
> argv: ['git', 'fetch', 'git at git.server.com:repo.git', 'devel']
> I would have expected to use a similar work flow to clone, co -b
> branch origin/branch, etc. I'm guessing things are different when you
> use git init as the entry point. What am I missing?
> Thanks again for all your help,
> Chad
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel

More information about the devel mailing list