[Buildbot-devel] scheduler support for multiple repositories

tom fogal tfogal at alumni.unh.edu
Tue Mar 9 01:57:11 UTC 2010


Prakash Santhanagopalan <prakashs at gmail.com> writes:
> Is there a provision for a buildbot scheduler to feed off a specific
> change source in a list of change sources for a single project? How
> can I trigger certain builds depending on what change source
> triggered the change? Any help is much appreciated.

I think, if I understand what you're asking.  Just define a list of
change sources instead of a single one.  I've got this in one of my
master.cfg's, for example:

  c['change_source'] = [ SVNPoller(iv3d_root, pollinterval=80),
                         SVNPoller(tuvok_root, pollinterval=40),
                         SVNPoller(basics_root, pollinterval=90),
                         SVNPoller(scio_root, pollinterval=60) ]

later, as a build step:

  checkout = source.SVN(svnurl=iv3d_root, mode="copy")

Really, our SW consists of the repo given by `iv3d_root', but the other
3 repos are setup as svn:externals.  Unfortunately, BBot will use the
revision from say, tuvok_root, if that repo changes, even though it
really should always just pull iv3d_root's latest.

The attached tiny patch forces it to pull HEAD.  It's a bit annoying
and probably breaks the "build this revision" feature, but that's not
important for us.

If I'm totally off base, maybe the "fileIsImportant" argument of a
Scheduler is what you're looking for.

Cheers,

-tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-diff
Size: 682 bytes
Desc: bb-head.patch
URL: <http://buildbot.net/pipermail/devel/attachments/20100308/4bc628d6/attachment.bin>


More information about the devel mailing list