Reputation: 127
I want jenkins to build when the Github gets merged to a master branch. There's a way using hooking, but I can not use my url for jenkins. It is not exposed to public.
Is there any way jenkins to build by polling to Gitbut without hooking its url?
Upvotes: 3
Views: 67
Reputation: 1323753
If this is your own Jenkins instance, you can still use your Jenkins URL in your GitHub webhook setting by making one, with ngrok (which has a free offer)
If not, you would need to switch to a polling approach, where a cron job in Jenkins would every x minutes monitor your GitHub master branch and trgiger a job on new commits
Upvotes: 2