Can't download artifacts via API
I'm trying to get an artifact using curl as documented in Builds API..
To test it (as it didn't worked during the job) I grabbed the job id and the token from a build and tried manually:
curl -i "https://[redacted]/ci/api/v1/builds/15546/artifacts" --form "token=redacted"
But I'm getting:
HTTP/1.1 100 Continue
HTTP/1.1 403 Forbidden
[...]
the JOB_ID has been taken from the line "Downloading artifacts for build_module (15546)..." in the logs, so it's the job id successfully used by the runner to fetch the artifacts. I dumped the token in a file so it's the right one too.
Can't find why I'm getting this Forbidden... looks like a bug.