Frontend: Set a predefined list of values for CI environment variables and surface them in the "Run pipeline" page form
Summary
In 13.7 we made it possible to surface pre-filled variables with values in the "Run pipeline" page. Changing the value is still a manual and error-prone process. The CI users would like to be able to set a list of predefined variable values for CI environment variables to make it easier to run a pipeline with the available variables.
Proposal
- Variable values array will be defined in YAML
- The available variable values will be surfaced in the "Run pipeline" form as a list dropdown
- The first value in the values list will be used as the default value, pre-selected in the dropdown
- The dropdown will only show the values that's been added in YAML, there will be no option to add your own value
- A Variable will not get created in case it does not populate through the form
YAML Definition
variables:
DEPLOY_ENVIRONMENT:
value: "staging" # default value of the dropdown list
options: # options in the dropdown list
- "staging"
- "canary"
- "production"
description: "The deployment target. Change this variable to 'canary' or 'production' if needed."
Design
Implementation Table
Implementation | MR |
---|---|
Set up feature flag and GraphQL app | !96633 (merged) workflowfeature-flagged |
Implement feature with GQL | !96542 (merged) workflowin review |
Rollout feature flag | #372310 (closed) |
Links/References
Group | Issue Link |
---|---|
UX | #29159 (closed) |
backend | #362934 (closed) |
frontend |
|
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.