Cherry picking an MR causes two build pipelines to be created
Steps to Reproduce
- Cherry-pick a merged MR to an existing branch (
target-branch) (auto-creating the MR or not does not affect this issue)
What is Expected
- A new branch is created from the
target-branch. - The merge commit is cherry-picked onto the new branch .
- A build pipeline is started on the new branch.
What actually happens
- A new branch is created from the
target-branch. - A build pipeline is started on the new branch. (This is the incorrect step)
- The merge commit is cherry-picked onto the new branch .
- A build pipeline is started on the new branch.
Why this is a bug
When using git branches from the command line, I do push the new branch before making any changes to it. The bug effectively causes twice the number of resources to be consumed, which can be especially apparent if a CI pipeline causes a lot of resources to be consumed (time, storage, bandwidth, etc) or only run CI job can execute at one time (i.e. contention of resources).
Edited by 🤖 GitLab Bot 🤖