Skip to content

Allow downloading artifacts from the API for failed jobs and pipelines

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

Proposal

Our documentation for getting the artifacts of the latest pipeline states

You can download job artifacts from the latest successful pipeline by using a URL

This assumes that the user only wants the artifacts for the successful pipelines only. There are a lot of reasons why a user would want to download the job artifacts for the latest failed pipeline too (e.g. see why it failed).

We should change how this endpoint works so that it simply gets the job artifacts from the latest completed pipeline regardless of whether it succeeded or failed.

Edited by 🤖 GitLab Bot 🤖