[Buildbot-devel] Continuous scheduler

Patrick Farrell cyan at compsoc.nuigalway.ie
Tue Mar 6 23:47:06 UTC 2007


Hi,

Thanks for your help! For reference here is the final version
that we're using:

class ContinuousBuildScheduler(scheduler.BaseScheduler):
     def __init__(self, name, builderNames):
         scheduler.BaseScheduler.__init__(self, name)
         self.builderNames = builderNames
     def startService(self):
         scheduler.BaseScheduler.startService(self)
         reactor.callLater(0, self.fire)
     def fire(self):
         bs = buildset.BuildSet(self.builderNames,
                                sourcestamp.SourceStamp(), # build HEAD
                                "continuous scheduler said to build")
         d = bs.waitUntilFinished()
         self.parent.submitBuildSet(bs)
         d.addCallback(self.buildFinished)
     def buildFinished(self, bss):
         self.fire()
     def listBuilderNames(self):
         return self.builderNames
     def getPendingBuildTimes(self):
         return []

It does exactly what we're looking for.

Thanks again,

--
Patrick Farrell




More information about the devel mailing list