Package buildbot :: Package slave :: Module bot :: Class SlaveBuilder
[frames] | no frames]

Class SlaveBuilder

source code

 twisted.spread.jelly.Jellyable --+        
                                  |        
twisted.spread.flavors.Serializable --+    
                                      |    
   twisted.spread.flavors.Referenceable --+
                                          |
    twisted.application.service.Service --+
                                          |
                                         SlaveBuilder

This is the local representation of a single Builder: it handles a single kind of build (like an all-warnings build). It has a name and a home directory. The rest of its behavior is determined by the master.

Instance Methods
 
__init__(self, name, not_really) source code
 
__repr__(self) source code
 
setServiceParent(self, parent) source code
 
setBuilddir(self, builddir) source code
 
stopService(self) source code
 
activity(self) source code
 
remote_setMaster(self, remote) source code
 
remote_print(self, message) source code
 
remote_ping(self) source code
 
lostRemote(self, remote) source code
 
lostRemoteStep(self, remotestep) source code
 
remote_startBuild(self)
This is invoked before the first step of any new build is run.
source code
 
remote_startCommand(self, stepref, stepId, command, args)
This gets invoked by buildbot.process.step.RemoteCommand.start, as part of various master-side BuildSteps, to start various commands that actually do the build.
source code
 
remote_interruptCommand(self, stepId, why)
Halt the current step.
source code
 
stopCommand(self)
Make any currently-running command die, with no further status output.
source code
 
sendUpdate(self, data)
This sends the status update to the master-side buildbot.process.step.RemoteCommand object, giving it a sequence number in the process.
source code
 
ackUpdate(self, acknum) source code
 
ackComplete(self, dummy) source code
 
commandComplete(self, failure) source code
 
remote_shutdown(self) source code

Inherited from twisted.spread.flavors.Referenceable: jellyFor, remoteMessageReceived

Inherited from twisted.spread.flavors.Serializable: processUniqueID

Inherited from twisted.spread.jelly.Jellyable: __providedBy__, getStateFor

Inherited from twisted.application.service.Service: __getstate__, disownServiceParent, privilegedStartService, setName, startService

Class Variables
  stopCommandOnShutdown = True
  remote = None
  build = None
  command = None
  remoteStep = None

Inherited from twisted.spread.flavors.Referenceable: __implemented__, __provides__, perspective

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

Method Details

setServiceParent(self, parent)

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

stopService(self)

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

remote_startBuild(self)

source code 

This is invoked before the first step of any new build is run. It creates a new SlaveBuild object, which holds slave-side state from one step to the next.

remote_startCommand(self, stepref, stepId, command, args)

source code 

This gets invoked by buildbot.process.step.RemoteCommand.start, as part of various master-side BuildSteps, to start various commands that actually do the build. I return nothing. Eventually I will call .commandComplete() to notify the master-side RemoteCommand that I'm done.

stopCommand(self)

source code 

Make any currently-running command die, with no further status output. This is used when the buildslave is shutting down or the connection to the master has been lost. Interrupt the command, silence it, and then forget about it.

sendUpdate(self, data)

source code 

This sends the status update to the master-side buildbot.process.step.RemoteCommand object, giving it a sequence number in the process. It adds the update to a queue, and asks the master to acknowledge the update so it can be removed from that queue.