The Build-Artifact endpoint has recently been broken
https://circleci.com/docs/api/v1-reference/#build-artifacts
The leading slash has been removed from path returned by the build artifact API endpoint.
eg. path is now :
path: “home/ubuntu/circleci-testing/baking/cherry-pie.png”,
was previously
path: “/home/ubuntu/circleci-testing/baking/cherry-pie.png”
It should be the later as per the example response.
[
{
node_index: 0,
path: "/home/ubuntu/circleci-testing/baking/cherry-pie.png",
pretty_path: "/home/ubuntu/circleci-testing/baking/cherry-pie.png",
url: "https://circleci.com/gh/circleci/testing/22/artifacts/0/home/ubuntu/circleci-testing/baking/cherry-pie.png"
},
{
node_index: 0,
path: "/home/ubuntu/circleci-testing/baking/rhubarb-pie.png",
pretty_path: "/home/ubuntu/circleci-testing/baking/rhubarb-pie.png",
url: "https://circleci.com/gh/circleci/testing/22/artifacts/0/home/ubuntu/circleci-testing/bakingrhubarb-pie.png"
}
]
Although this problem hasn’t been happening for months and has only just appeared in the last few days, you can still list artifacts from about 3 months ago and still see the correct path returned from the API, although projects built since then will not contain the correct path.