How to set a group environment variable in gitlab ci

Viewed 6340

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.

1 Answers

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.

Related