Skip to content

Instantly share code, notes, and snippets.

@Hexxeh
Created August 12, 2016 14:20
Show Gist options
  • Save Hexxeh/7197277a8508bd8f19c5351b80153bb0 to your computer and use it in GitHub Desktop.
Save Hexxeh/7197277a8508bd8f19c5351b80153bb0 to your computer and use it in GitHub Desktop.
@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