python
python

Reputation: 1

Jenkins Build Trigger after each commit to Github

I want to set in Jenkins jobs triggering Build after each commit I dont have access to Setting in my repository on Github, so I don't have possibility using WebHook.

What is the best/.easy way to set this in other way?

I have jobs for private repository Github, and clone project by SSH I also using Github Oauth Token

Jenkins Continuous Integration Server is on running on a Ubuntu host

Upvotes: 0

Views: 171

Answers (1)

Yarimadam
Yarimadam

Reputation: 1183

You can use local git hook pre-push. It runs after you issue the "git push" command. (but executes before pushing)

See example: pre-push hook

Upvotes: 0

Related Questions