52

I'm debugging the use of a report creator. I forgot a line and would like to edit the code without triggering the build pipeline.

I know that it's possible to write [ci skip] in the commit pipeline to pass the pipeline execution in Jenkins CI, but I'm using GitLab CI.

Does the same mechanism exist for GitLab CI? I couldn't find it in the docs.

1

1 Answer 1

89

Yes, there is:

If your commit message contains [ci skip] or [skip ci], using any capitalization, the commit will be created but the pipeline will be skipped.

Alternatively, one can pass the ci.skip Git push option if using Git 2.10 or newer:

git push -o ci.skip

From: GitLab CI Pipelines documentation - "Skip Pipeline"

2
  • 5
    Take a look at the full list of push command options Dec 12, 2019 at 5:26
  • 1
    Apparently, also any kind of case works, for example taco case [skip-ci]
    – Daniel
    May 25, 2022 at 13:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.