Package buildbot :: Package schedulers :: Module forcesched :: Class ForceScheduler
[frames] | no frames]

Class ForceScheduler

source code

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

Instance Methods
 
__init__(self, name, builderNames, branch=StringParameter(name="branch",default=""), reason=StringParameter(name="reason",default="force build"), revision=StringParameter(name="revision",default=""), repository=StringParameter(name="repository",default=""), project=StringParameter(name="project",default=""), username=UserNameParameter(), properties=[AnyPropertyParameter("property1"),AnyPropertyParameter("prope...)
Initialize a Scheduler.
source code
 
startService(self) source code
 
stopService(self) source code
 
forceWithWebRequest(self, owner, builder_name, req)
Called by the web UI.
source code

Inherited from base.BaseScheduler: __provides__, addBuildsetForChanges, addBuildsetForChangesMultiRepo, addBuildsetForLatest, addBuildsetForSourceStamp, findNewSchedulerInstance, getPendingBuildTimes, getState, gotChange, 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', 'branch', 'reason', '...

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, branch=StringParameter(name="branch",default=""), reason=StringParameter(name="reason",default="force build"), revision=StringParameter(name="revision",default=""), repository=StringParameter(name="repository",default=""), project=StringParameter(name="project",default=""), username=UserNameParameter(), properties=[AnyPropertyParameter("property1"),AnyPropertyParameter("prope...)
(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__

startService(self)

source code 
Overrides: twisted.application.service.Service.startService

stopService(self)

source code 
Overrides: twisted.application.service.Service.stopService

forceWithWebRequest(self, owner, builder_name, req)

source code 

Called by the web UI. Authentication is already done, thus owner is passed as argument We check the parameters, and launch the build, if everything is correct


Class Variable Details

compare_attrs

Value:
('name',
 'builderNames',
 'branch',
 'reason',
 'revision',
 'repository',
 'project',
 'forcedProperties')