Skip to content
The Nameless Site
@halkeye@halkeye@toot.cafeMatrixNigel

Git+push notification with Gitolite and Jenkins

general, git, gitolite, jenkins1 min read

Its so easy now to support jenkins+git with gitolite. No more having git polling per project and slamming the git server with ssh requests.

To install: Edit .gitolite/hooks/common/post-receive file 1

Add: curl -s http:///git/notifyCommit?url=/${GL_REPO}.git

For me, my git prefix is: "ssh://git@git.kodekoan.com"

Its that simple.

Footnotes

  1. .gitolite/hooks/common/post-receive should be symlinked in every repo you have. I think you needed to set it up before you created a repo though)

© 2023 by The Nameless Site. All rights reserved.
Theme by LekoArts