Skip to content

Prefer CI_API_V4_URL for scripts/api and introduce --endpoint to change it

Lin Jen-Shin requested to merge 337779-prefer-ci-api-endpoint into master

What does this MR do?

  • Prefer CI_API_V4_URL for scripts/api and introduce --endpoint to change it
  • Scripts in retrieve_tests_metadata and retrieve_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 default CI_API_V4_URL)
  • Avoid using global GitLab client

Related to #337779 (closed)

Edited by Lin Jen-Shin

Merge request reports