Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #54621
Closed
Open
Issue created Nov 29, 2018 by Balasankar 'Balu' C@balasankarcDeveloper

Provide CI_API_V4_URL environment variable

Internal Slack Discussion: https://gitlab.slack.com/archives/C02PF508L/p1543416106950600

With https://gitlab.com/gitlab-org/gitlab-ce/issues/50319, we changed the scope of PAT and can no longer do certain actions which were part of our (Distribution) internal workflow using them. This required us to change the logic to use API for those tasks - for example downloading a build artifact - omnibus-gitlab!2887 (merged) .

However, this caused another issue - we now have to hard code the URL to API - which makes it difficult to have separate workflows on gitlab.com and dev.gitlab.org without having conditional around them.

Proposal

Provide CI_API_V4_URL environment variable which points to the V4 API end point - /api/v4.

cc @jlenny @steveazz @twk3

Edited Dec 19, 2018 by Grzegorz Bizon
Assignee
Assign to
Time tracking