Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
 def getControl(self):
     if self.allowForce:
         return IControl(self.parent)
     return None
Exemplo n.º 4
0
 def getControl(self):
     if self.allowForce:
         return IControl(self.master)
     return None