Skip to content

Get artifact archive file list with Jobs API

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem to solve

As a build engineer who needs a single file from a job, I want to query for a list of the available files, so I can save time/network bandwidth when looking for a file amongst potentially hundreds.

With Jobs API you can to download single file from job artifact archive but files list not available

Further details

On site side you can get artifact archive files list

Its already possible to download single file from job artifact archive

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

If you need files from some folder than you mast to download full archive and its make some space and network overuse

Proposal

Add API endpoint that takes jobID and returns a list of files from that job.

User Flow

A user/script would use this API to get the list of files from a job, parse that list for whatever they are looking for, and then get the single file they need. This might happen for coverage reports or or other reports generated as part of a pipeline for example.

Edited by 🤖 GitLab Bot 🤖