Prefer CI_API_V4_URL for scripts/api and introduce --endpoint to change it
What does this MR do?
- Prefer CI_API_V4_URL for scripts/api and introduce --endpoint to change it
- Scripts in
retrieve_tests_metadata
andretrieve_tests_mapping
we pass--endpoint 'https://gitlab.com/api/v4'
because we want to use the canonical metadata for now (so other instances will not need to set up updating metadata yet) - Scripts in
fail_pipeline_early
we don't pass--endpoint
because we want to request against its own instance (thus with defaultCI_API_V4_URL
) - Avoid using global GitLab client
Related to #337779 (closed)
Edited by Lin Jen-Shin