microsoft / microsoft/azure-devops-python-api

Downloading a specific item from a published build artifact

Open
#328 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,

Is there a way of downloading a specific item from an artifact resource without having to read the entire artifact contents as a zip file?

I'd like to be able to do something like the following:

artifacts = build_client.get_artifacts(build_id=summary.id, project=project_id)

for artifact in artifacts:
    if is_artifact_we_are_interested_in(artifact):
        # download desired file from artifact

But I couldn't find any function that would achieve that in this repository, neither in Azure Devops REST API documentation.

Thanks.

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.get_artifacts(build_id=summary.id, project=project_id) entry point and compare the available artifact operations with the Azure DevOps REST API documentation. Determine whether downloading one item is supported and identify the repository changes needed if it is not; done means a clearly scoped API capability or documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api, devops
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.