microsoft / microsoft/azure-devops-python-api

Get any build output

Open
#408 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
684
Forks
218
Avg merge
8d 10h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the build_client_v6_0.get_build(project_name, buildId) call shown in the issue and inspect the returned build fields. Determine whether output variables or a parseable build-output string is available through this client; done means identifying a supported way to retrieve that information.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.