Skip to content

Instantly share code, notes, and snippets.

@tjayr
Created January 22, 2014 21:33
Show Gist options
  • Save tjayr/8567774 to your computer and use it in GitHub Desktop.
Save tjayr/8567774 to your computer and use it in GitHub Desktop.
Git post-commit hook for triggering a jenkins build on a commit. Place in <repo>/.git/hooks and make it executable. Change jenkins and commit urls obviously
curl <JENKIS_URL>/git/notifyCommit?url=<GIT_CLONE_URL>
curl http://localhost:8080/git/notifyCommit?url=file:///home/tony/git-projects/test-jenkins-hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment