Skip to content

adds support for per-branch variables: VARNAME@branch

Peter Mikula requested to merge peterm0x/gitlab-ce:master into master

What does this MR do?

Relaxes validation on variable keys to allow optional @branch suffix.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Together with gitlab-ci-multi-runner patch this allows definition of per-branch secret variables. For example having VAULT_PASS@master=abc VAULT_PASS@production=def

will expose VAULT_PASS=def when running on production branch.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#13379 (moved)

Merge request reports