Preserve variables when switching branches on run pipelines page
What does this MR do and why?
Preserve variables when switching branches on run pipelines page
References
Fixes: #486983 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
| Screen Recording 2025-11-21 at 23.14.39.mov | Screen Recording 2025-11-21 at 23.15.35.mov |
How to set up and validate locally
- Checkout this branch
gitlab-community/gitlab-org/gitlab:fix/preserve-pipelines-variables-on-branch-change - Run gdk locally
gdk start - Open any project
- Go to Pipelines page
Build > Pipelines - Click
New pipelinebutton - Enter few variables
- Try changing the branch from branch selector
- Notice the variables will persist now