8000 Support downloading a single artifact file · Issue #432 · python-gitlab/python-gitlab · GitHub
[go: up one dir, main page]

Skip to content
Support downloading a single artifact file #432
Closed
@JonathonReinhart

Description

@JonathonReinhart

GitLab 10.0 added an API route to download a single artifact file:

GET /projects/:id/jobs/:job_id/artifacts/*artifact_path

Example request:

curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" \
    "https://gitlab.example.com/api/v4/projects/1/jobs/5/artifacts/some/release/file.pdf"

python-gitlab does not appear to support this.

I imagine something like this:

job.get_artifact('some/release/file.pdf', streamed=True, action=whatever)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0