Next: , Previous: Dependent Scheduler, Up: Schedulers


4.7.6 Periodic Scheduler

This simple scheduler just triggers a build every N seconds.

The arguments to this scheduler are:

name
builderNames
properties
periodicBuildTimer
The time, in seconds, after which to start a build.

Example:

     from buildbot.schedulers import timed
     nightly = timed.Periodic(name="nightly",
                     builderNames=["full-solaris"],
                     periodicBuildTimer=24*60*60)
     c['schedulers'] = [nightly]

The Scheduler in this example just runs the full solaris build once per day. Note that this Scheduler only lets you control the time between builds, not the absolute time-of-day of each Build, so this could easily wind up a “daily” or “every afternoon” scheduler depending upon when it was first activated.