Add push option ci.no_pipeline

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA

What does this MR do and why?

The aim of this MR is propose a new option to push commit without create any pipeline for the commit, not even a skipped pipeline

Issue: #28369
Issue: #497112

Add push option ci.no_pipeline

With the option ci.no_pipeline there is no pipeline created after a push

Signed-off-by: guillaume.micouin-jorda gmicouin@netcourrier.com

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  • enable feature flag by running bin/rails runner "Feature.enable(:ci_no_pipeline_push_option)"

  • After a push with ci.no_pipeline option, there a commit pushed in our MR, without pipeline associated to the commit.

    git push -o ci.no_pipeline

image

Edited by Tianwen Chen

Merge request reports

Loading