Skip to content

Add ability to create custom variable

Alexander Turinske requested to merge 412790-custom-variable into master

What does this MR do and why?

Add ability to create custom variable

  • allow user to toggle between defined variable and custom variable
  • update translations
  • remove error for custom variables

Changelog: added

EE: true

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Just pre-defined keys custom_key

Related to !122979 (merged)

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Upload a GitLab Ultimate license
  2. Navigate to a project/group => Secure => Policies => New policy => Scan execution policy
  3. Verify a user can add CI variables in rule mode, modify them in yaml mode and have them reflected in rule mode, etcetera
  4. Save the policy with variables
  5. Navigate to a project/group => Secure => Policies => Edit policy
  6. Verify the editor populates the variables and are editable
  7. Modify variables to use custom keys

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #412790 (closed)

Edited by Alexander Turinske

Merge request reports