No documentation on how to download a specific artifact type (via rest api)
https://docs.gitlab.com/ee/api/jobs.html
Under this page/api, it gives an example list of artifacts for a job eg:
"artifacts": [
{"file_type": "archive", "size": 1000, "filename": "artifacts.zip", "file_format": "zip"},
{"file_type": "metadata", "size": 186, "filename": "metadata.gz", "file_format": "gzip"},
{"file_type": "trace", "size": 1500, "filename": "job.log", "file_format": "raw"},
{"file_type": "junit", "size": 750, "filename": "junit.xml.gz", "file_format": "gzip"}
],
However, it gives no example on how to access say the junit artifact.
Using the closest possible api call GET /projects/:id/jobs/:job_id/artifacts/junit.xml.gz fails to download the expected artifact and gives a 404 response.