'Save this command and result via the API'

def save(self):

    data = {'build': self.build_env.build.get('id'), 'command': self.get_command(), 'description': self.description, 'output': self.output, 'exit_code': self.exit_code, 'start_time': self.start_time, 'end_time': self.end_time}
    api_v2.command.post(data)
