patternCritical
Is there a [ci skip] option in GitLab CI?
Viewed 0 times
optiontheregitlabskip
Problem
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.
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.
Solution
Yes, there is:
If your commit message contains
Alternatively, one can pass the
From: GitLab CI Pipelines documentation - "Skip Pipeline"
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.skipFrom: GitLab CI Pipelines documentation - "Skip Pipeline"
Code Snippets
git push -o ci.skipContext
StackExchange DevOps Q#6809, answer score: 95
Revisions (0)
No revisions yet.