Skip to main content
Source Link
elsamuko
  • 608
  • 6
  • 17

Run gitlab pipeline only for commits

Currently gitlab runs a pipeline when creating a merge request + branch with the GUI.
Is it possible to skip this pipeline, since it's only repeats the last pipeline from the default branch?

We tried with:

workflow:
  rules:
    - if: $CI_MERGE_REQUEST_IID
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

This works to skip new branch pipelines, but it doesn't run a pipeline for new commits on branches which have no merge request.