Code quality endpoint redirects into a new one
head_path and base_path endpoints sent by the backend, are pointing to /gitlab-org/gitlab-ee/builds/build_id/artifacts/raw/codeclimate.json, and that is redirected to /gitlab-org/gitlab-ee/-/jobs/build_id/artifacts/raw/codeclimate.json
I think code quality feature was introduced after the API renaming. We could be fetching directly the second endpoint. We could avoid this redirect and improve performance.
Edited by Filipa Lacerda