CiscoIPPhone
CiscoIPPhone

Reputation: 9477

How can I Git Push without triggering a build?

We currently have git setup so that whenever we push to the repository on our build server a bash script on the server is executed that starts a build.

Occasionally we make changes that shouldn't trigger a build. Is there any extra parameter we could give to git push so that it doesn't execute the receive hooks, or passes the parameter into the receive hooks? Any other solutions to prevent a build being kicked off also welcome.

Upvotes: 3

Views: 2926

Answers (1)

VonC
VonC

Reputation: 1329572

If the "special keyword in the commit message" suggested by tauran isn't a good solution enough, don't forget about git notes. (See Notes to self).

You can attach any kind of text metadata to a commit (without having to change its SHA1).
You can then parse not for a commit message content, but for the existence of a special note on the pushed commits.

Upvotes: 6

Related Questions