Allow downloading artifacts from the API for failed jobs and pipelines
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.