Leo Lee
Leo Lee

Reputation: 127

Any way jenkins to auto build by polling to Github without hooking?

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

Answers (1)

VonC
VonC

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

http://lh3.ggpht.com/-_t31sX5XYBU/VQXVt6PucQI/AAAAAAAABt0/gjCgub_9nH0/jenkins009_thumb%25255B1%25255D.png?imgmax=800

Upvotes: 2

Related Questions