Package buildbot :: Package schedulers :: Module timed :: Class Nightly
[frames] | no frames]

Class Nightly

source code

 twisted.application.service.Service --+            
                                       |            
twisted.application.service.MultiService --+        
                                           |        
                    util.ComparableMixin --+        
                                           |        
                          base.BaseScheduler --+    
                                               |    
                                           Timed --+
                                                   |
                                                  Nightly

Nested Classes
  NoBranch
Instance Methods
 
__init__(self, name, builderNames, minute=0, hour='*', dayOfMonth='*', month='*', dayOfWeek='*', branch=<class buildbot.schedulers.timed.NoBranch at 0x3a74598>, fileIsImportant=None, onlyIfChanged=False, properties={}, change_filter=None, onlyImportant=False)
Initialize a Scheduler.
source code
 
startTimedSchedulerService(self)
Hook for subclasses to participate in the startService process; can return a Deferred
source code
 
gotChange(self, change, important)
Called when a change is received; returns a Deferred.
source code
 
getNextBuildTime(self, lastActuated)
Called by to calculate the next time to actuate a BuildSet.
source code
 
startBuild(*args, **kwargs)
The time has come to start a new build.
source code

Inherited from Timed: getPendingBuildTimes, now, scheduleNextBuild, startService, stopService

Inherited from base.BaseScheduler: __provides__, addBuildsetForChanges, addBuildsetForChangesMultiRepo, addBuildsetForLatest, addBuildsetForSourceStamp, findNewSchedulerInstance, getState, listBuilderNames, setState, startConsumingChanges

Inherited from twisted.application.service.MultiService: __iter__, addService, getServiceNamed, privilegedStartService, removeService

Inherited from twisted.application.service.Service: __getstate__, __providedBy__, disownServiceParent, setName, setServiceParent

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables
  compare_attrs = ('name', 'builderNames', 'properties', 'minute...

Inherited from base.BaseScheduler: __implemented__

Inherited from twisted.application.service.Service: parent, running

Instance Variables

Inherited from base.BaseScheduler: builderNames, name, properties

Method Details

__init__(self, name, builderNames, minute=0, hour='*', dayOfMonth='*', month='*', dayOfWeek='*', branch=<class buildbot.schedulers.timed.NoBranch at 0x3a74598>, fileIsImportant=None, onlyIfChanged=False, properties={}, change_filter=None, onlyImportant=False)
(Constructor)

source code 

Initialize a Scheduler.

Parameters:
  • name - name of this scheduler (used as a key for state)
  • builderNames - list of builders this scheduler may start
  • properties - properties to add to builds triggered by this scheduler
  • consumeChanges - true if this scheduler wishes to be informed about the addition of new changes. Defaults to False. This should be passed explicitly from subclasses to indicate their interest in consuming changes.
Overrides: twisted.application.service.MultiService.__init__

startTimedSchedulerService(self)

source code 

Hook for subclasses to participate in the startService process; can return a Deferred

Overrides: Timed.startTimedSchedulerService
(inherited documentation)

gotChange(self, change, important)

source code 

Called when a change is received; returns a Deferred. If the fileIsImportant parameter to startConsumingChanges was None, then all changes are considered important.

Parameters:
  • change - the new change object
  • important - true if this is an important change, according to fileIsImportant.
Returns:
Deferred
Overrides: base.BaseScheduler.gotChange
(inherited documentation)

getNextBuildTime(self, lastActuated)

source code 

Called by to calculate the next time to actuate a BuildSet. Override in subclasses. To trigger a fresh call to this method, use rescheduleNextBuild.

Parameters:
  • lastActuation - the time of the last actuation, or None for never
Returns:
a Deferred firing with the next time a build should occur (in the future), or None for never.
Overrides: Timed.getNextBuildTime
(inherited documentation)

startBuild(*args, **kwargs)

source code 

The time has come to start a new build. Returns a Deferred. Override in subclasses.

Decorators:
  • @defer.deferredGenerator
Overrides: Timed.startBuild
(inherited documentation)

Class Variable Details

compare_attrs

Value:
('name',
 'builderNames',
 'properties',
 'minute',
 'hour',
 'dayOfMonth',
 'month',
 'dayOfWeek',
...