How to auto trigger Build when a change is pushed to GitHub

40 views
Skip to first unread message

Suryateja Hanumandla

unread,
Nov 3, 2015, 9:17:06 AM11/3/15
to Jenkins Users
Hi,
Currently I'm doing with git poll, where I'm doing poll for every 2 mins. Is there any possibility instead of git poll mechanism in jenkins, because every now and then we need to poll the repo and check.

Thanks,
Surya.

Victor Martinez

unread,
Nov 3, 2015, 2:43:24 PM11/3/15
to Jenkins Users
You can use the git hooks:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin (section Push notification from repository)

KK already posted the below post:

If you use github then use the webhooks configuration,.

Cheers

Kanstantsin Shautsou

unread,
Nov 10, 2015, 7:20:25 AM11/10/15
to Jenkins Users
Just install github-plugin, configure global and job settings according to https://wiki.jenkins-ci.org/display/JENKINS/GitHub+Plugin and replace "poll scm" with "Build whenever commit is pushed to github".
Reply all
Reply to author
Forward
0 new messages