Created
August 12, 2016 14:20
-
-
Save Hexxeh/7197277a8508bd8f19c5351b80153bb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@defer.inlineCallbacks | |
def run(self): | |
cmd = yield self.makeRemoteShellCommand() | |
yield self.runCommand(cmd) | |
result = cmd.results() | |
if result == util.SUCCESS: | |
# self.extract_steps returns a list of steps (eg step.ShellCommand) | |
step_factories = self.extract_steps(self.observer.getStdout()) | |
self.build.addStepsAfterCurrentStep(step_factories) | |
else: | |
# TODO: handle case where CI file doesn't exist/read correctly | |
assert False | |
defer.returnValue(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment