Created
January 22, 2014 21:33
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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