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 --+            
                                           |            
                              object --+   |            
                                       |   |            
                   util.state.StateMixin --+            
                                           |            
                          base.BaseScheduler --+        
                                               |        
                                           Timed --+    
                                                   |    
                                         NightlyBase --+
                                                       |
                                                      Nightly

Nested Classes
  NoBranch
Instance Methods
 
__init__(self, name, builderNames, minute=0, hour='*', dayOfMonth='*', month='*', dayOfWeek='*', branch=<class buildbot.schedulers.timed.NoBranch at 0x3292530>, fileIsImportant=None, onlyIfChanged=False, properties={}, change_filter=None, onlyImportant=False, codebases={'': {}})
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
 
startBuild(*args, **kwargs)
The time has come to start a new build.
source code

Inherited from NightlyBase: __provides__, getNextBuildTime

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

Inherited from base.BaseScheduler: addBuildsetForChanges, addBuildsetForLatest, addBuildsetForSourceStamp, addBuildsetForSourceStampDetails, addBuildsetForSourceStampSetDetails, findNewSchedulerInstance, listBuilderNames, 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__

Inherited from util.state.StateMixin: getState, setState

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

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

Inherited from NightlyBase: __implemented__

Inherited from base.BaseScheduler: DefaultCodebases

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

Instance Variables

Inherited from base.BaseScheduler: builderNames, name, properties

Properties

Inherited from object: __class__

Method Details

__init__(self, name, builderNames, minute=0, hour='*', dayOfMonth='*', month='*', dayOfWeek='*', branch=<class buildbot.schedulers.timed.NoBranch at 0x3292530>, fileIsImportant=None, onlyIfChanged=False, properties={}, change_filter=None, onlyImportant=False, codebases={'': {}})
(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
  • codebases - codebases that are necessary to process the changes
  • 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: object.__init__
(inherited documentation)

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. The codebase of the change has always an entry in the codebases dictionary of the scheduler.

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)

startBuild(*args, **kwargs)

source code 

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

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

Class Variable Details

compare_attrs

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