not been able to make Jenkins trigger a build when changes are pushed to Github

vaibhavcool20 picture vaibhavcool20 · Mar 30, 2015 · Viewed 10.8k times · Source

their are a lot of question like this but none seem to work.

I am running jenkins on http://localhost:1001/ and have added the authorization token from github into jenkins and it seems to work.

I can build the project manually and when i push some thing onto the github and build the project again changes are made but

I am not been able to do this automatically via webhook.

when I open last github log this is the output

Polling has not run yet

in configuration of project I have put

enter image description here

PS: don't worry that i have posted the link repo because their is nothing much in repo.

PPS: installed all the plug ins and build trigger is on Build when a change is pushed to GitHub

Answer

Josue Abarca picture Josue Abarca · Mar 31, 2015

Since your jenkins is not accessible from a public IP address, GitHub can not trigger the build via WebHook.

The alternative is to use the "Polling" mechanism, to check for changes every X minutes, for example:

enter image description here