shane
shane

Reputation: 1863

How to set a group environment variable in gitlab ci

How do you manage group environment variables in gitlab ci? It looks like through the front end you may only add variables at project scope.

Upvotes: 15

Views: 24155

Answers (1)

DV82XL
DV82XL

Reputation: 6659

If you have GitLab 9.4+, you can set up group-level environment variables like this:

  • Navigate to your Group
  • Go to Settings > CI/CD > Variables.
  • Group variables will be inherited by the group's projects and sub-groups.
  • If you can't see the Settings or CI/CD menu options, you may not have sufficient permissions.

Side note: Environment-specific group variables are now available in GitLab Premium. See this issue thread.

Upvotes: 17

Related Questions