Example #1
0
 def stop_build(self, build, reason):
     """Stops the |build|."""
     control = IControl(self.master)  # request IControl from self.master.
     builder_control = control.getBuilder(build.getBuilder().getName())
     assert builder_control
     build_control = builder_control.getBuild(build.getNumber())
     assert build_control
     build_control.stopBuild(reason)
Example #2
0
 def stop_build(self, build, reason):
   """Stops the |build|."""
   control = IControl(self.master)  # request IControl from self.master.
   builder_control = control.getBuilder(build.getBuilder().getName())
   assert builder_control
   build_control = builder_control.getBuild(build.getNumber())
   assert build_control
   build_control.stopBuild(reason)
Example #3
0
 def getControl(self):
     if self.allowForce:
         return IControl(self.parent)
     return None
Example #4
0
 def getControl(self):
     if self.allowForce:
         return IControl(self.master)
     return None