Support group gitlab-deploy-token for CI_DEPLOY_ variables
What does this MR do and why?
When you define a deploy token with the name gitlab-deploy-token
in a project, you get CI_DEPLOY_USER
and CI_DEPLOY_PASSWORD
variables in CI pipeline jobs. However, you don't get them when you define this deploy token at the group level. This MR will implement this.
The changes are behind a feature flag ci_variable_for_group_gitlab_deploy_token
#363621 (closed)
Related to #214014 (closed)
Screenshots or screen recordings
- Create a deploy token with the name
gitlab-deploy-token
:
at http://gitlab/groups/my-group-name/-/settings/repository/deploy_token/create#js-deploy-tokens
- Test this CI config in a project under that group to see if the variable is available:
test:
script: echo $CI_DEPLOY_USER
- Enable the feature flag and test it again:
Feature.enable(:ci_variable_for_group_gitlab_deploy_token)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Marius Bobin