Create new merge request: skip pipeline on new branch creation

Our workflow is the following:

  1. create an issue
  2. open a merge request from the issue with the Create merge request button
  3. push commits to the new branch
  4. merge the merge request

I wonder if there is a way to skip the pipeline on the branch creation if the commit referenced by the new branch name already had a pipeline run.

  • What are you seeing, and how does that differ from what you expect to see?

A pipeline is started when the new branch is created.

As it start from a commit which already had a pipeline run, I thought no new pipeline would run until I push new commits.

  • Consider including screenshots, error messages, and/or other helpful visuals

  • What version are you on? Are you using self-managed or GitLab.com?

  • Add the CI configuration from .gitlab-ci.yml and other configuration if relevant (e.g. docker-compose.yml)

stages:
  - test

test-collapsable-section:
  stage: test
  script:
    - echo -e "\e[0Ksection_start:`date +%s`:my_first_sectionHeader of the 1st collapsible section"
    - echo 'this line should be hidden when collapsed'
    - echo -e "\e[0Ksection_end:`date +%s`:my_first_section\r\e[0K"
  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?