[Buildbot-devel] Every N Revisions Scheduler

Sergey A. Lipnevich sergey at optimaltec.com
Sun Nov 23 16:38:48 UTC 2008


David,

I did something similar with a subclassed regular scheduler (in my case, 
AnyBranchScheduler) and overridden addChange method. If scheduler 
doesn't "like" a particular change, it simply doesn't add it.
HTH,

Sergey.

def addChange(self, change):
     '''Make sure the changes is suitable for this scheduler.'''
     if not is_suitable_change(change):
         log.msg(
             'scheduler %s: branch %s: ignored %s' % (
                 self.name, change.branch, change,
                 )
             )
         return

     AnyBranchScheduler.addChange(self, change)


David A. Greene wrote:
> I'm still tinkering with my every N revisions scheduler.  However, I
> just realized that because the repository I'm watching is shared by
> other projects, I don't always see every 10th (for example) revision
> because that revision may happen to be made on another project.
> 
> I would still like BuildBot to kick off a build of my project at that 
> revision.  For example, let's say the svn revisions seen by buildbot
> are like so:
> 
> 23476
> 23477
> 23479
> 23481





More information about the devel mailing list