gitlabgitlab-cimerge-request

In gitlab, how to set "pipelines must succeed" only for specific branches but not others for a merge request to merge?


In the merge checks settings, I have enabled the "pipelines must succeed" option:

enter image description here

But the branches without any jobs are stuck at merge by saying "waiting for pipelines status" and you can't merge without a successful pipeline.

Can I enable the "pipelines must succeed" option only for some specific branches like master/production?


Solution

  • I think that is not possible.

    You should ensure that there is always a pipeline and that it’s successful.

    GitLab MR / when pipelines succeed / limitations