Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 has launched! Please visit Breaking changes in 15.0 and 15.0 Removals to see which breaking changes may impact your workflow.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #18667
Closed
Open
Created Jun 15, 2016 by Jonathon Reinhart@JonathonReinhartContributor

Skip CI builds during git push (as opposed to commit message)

Sometimes, I will want to push code, but I know it's not ready for a CI build yet. I really don't like polluting my commit messages with "tags" like [ci skip], and it wouldn't be clear to which commit I should add this tag anyway.

It would be much better if I could somehow tell GitLab, during the git push, to not create a build for this push event. This question on StackOverflow asks about passing arguments from git push.

While is of course isn't directly possible, this answer sheds some light on possible ways to accomplish this. The primary way would be via the target ref. Could we possibly "alias" ciskip/ref-name to ref-name, with the added effect of skipping CI build creation?

This can be accomplished using git push options.

Edited Nov 29, 2017 by Jonathon Reinhart
Assignee
Assign to
Time tracking