azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

Get any build output

Open khauser opened this issue 3 years ago • 0 comments

Hi there,

with

        build_client_v6_0 = self._connection.clients_v6_0.get_build_client()
        while 1:
            build = build_client_v6_0.get_build(project_name, buildId)
            logging.debug("Build running (id: {}, build_number: {} status: {}, result: {})".format(build.id, build.build_number, build.status, build.result))
            if build.status in ['completed']:
                logging.info("Build finished (id: {}, build_number: {} status: {}, result: {})".format(build.id, build.build_number, build.status, build.result))
                break
            time.sleep(30)
        return build

I am able to run a pipeline remotely and verify it's result. But is there a way also to gather more information? E.g. from output variables or at least a string which I could parse.

Thanks Karsten

khauser avatar Mar 31 '22 14:03 khauser