Improvement to set a predefined list of values for environment variables in the "Run pipeline" page form
Proposal
This is an incremental improvement from #29159 (closed) as noted in the comments #29159 (comment 1253056204).
Instead of..
variables:
description: "Build Label"
value: "Interim"
options:
- "GA"
- "Interim"
- "Beta 1"
- "Beta 2"
- "Beta 3"
- "Release Candidate 1"
- "Release Candidate 2"
- "Release Candidate 3"
We can use something like
variables:
description: "Build Label"
value: "staging"
options:
file: ./build_label.txt
Where build_label.txt is just a list of options, either separated by new line or comma separated or however. It doesn't have to be a plaintext, it can be JSON or YAML. The point is, we have some variables that are fairly dynamic (say for example, branch names) and we have to do a nasty POST to edit the gitlab-ci.yml at that certain variable location to add the variable to the option list.