Package buildbot :: Package status :: Module status_gerrit :: Class GerritStatusPush
[frames] | no frames]

Class GerritStatusPush

source code

                 base.StatusReceiverBase --+    
                                           |    
 twisted.application.service.Service --+   |    
                                       |   |    
twisted.application.service.MultiService --+    
                                           |    
                    util.ComparableMixin --+    
                                           |    
             base.StatusReceiverMultiService --+
                                               |
                                              GerritStatusPush

Event streamer to a gerrit ssh server.

Nested Classes
  LocalPP
Instance Methods
 
__init__(self, server, username, reviewCB=<function defaultReviewCB at 0x6193398>, port=29418, reviewArg=None, **kwargs) source code
 
startService(self) source code
 
builderAdded(self, name, builder) source code
 
buildFinished(self, builderName, build, result)
Do the SSH gerrit verify command to the server.
source code
 
sendCodeReview(self, project, revision, message=None, verified=0, reviewed=0) source code

Inherited from base.StatusReceiverMultiService: __provides__

Inherited from base.StatusReceiverBase: __providedBy__, buildETAUpdate, buildStarted, builderChangedState, builderRemoved, buildsetSubmitted, changeAdded, checkConfig, logChunk, logFinished, logStarted, requestCancelled, requestSubmitted, slaveConnected, slaveDisconnected, stepETAUpdate, stepFinished, stepStarted, stepText2Changed, stepTextChanged

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

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

Inherited from util.ComparableMixin: __cmp__, __hash__

Class Variables

Inherited from base.StatusReceiverMultiService: __implemented__

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

Inherited from util.ComparableMixin: compare_attrs

Method Details

__init__(self, server, username, reviewCB=<function defaultReviewCB at 0x6193398>, port=29418, reviewArg=None, **kwargs)
(Constructor)

source code 
Parameters:
  • server - Gerrit SSH server's address to use for push event notifications.
  • username - Gerrit SSH server's username.
  • reviewCB - Callback that is called each time a build is finished, and that is used to define the message and review approvals depending on the build result.
  • port - Gerrit SSH server's port.
  • reviewArg - Optional argument that is passed to the callback.
Overrides: twisted.application.service.MultiService.__init__

startService(self)

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

builderAdded(self, name, builder)

source code 
Overrides: base.StatusReceiverBase.builderAdded

buildFinished(self, builderName, build, result)

source code 

Do the SSH gerrit verify command to the server.

Overrides: base.StatusReceiverBase.buildFinished