You could also consider the blog posting from CloudBees which describes how to use a git trigger to avoid the overhead of polling every two minutes.
http://blog.cloudbees.com/2011/11/polling-must-die-triggering-jenkins.html I've been very pleased with the results when I made that switch on my git repositories. Mark Waite >________________________________ > From: nicolas de loof <nicolas.del...@gmail.com> >To: jenkinsci-users@googlegroups.com >Sent: Thursday, December 20, 2012 5:38 AM >Subject: Re: Need help on using Jenkins Git Plugin in my java application > > >nothing specific here, just configure SCM with your git repository, and a >"poll scm" trigger to schedule a poll every 2 minutes > > >for such a quick poll, a better option is for you to setup a git post-commit >hook to immediately trigger a new build > > >2012/12/20 Santosh Kumar K <kopp....@gmail.com> > >Hi, >> >>Actually my requirement is to git poll every 2 mins, i.e., if there is any >>new file >>say file "abc" been added/edited to the git then I have to generate the jar >>file of the "abc" file >>and later upload it to my deployment server. >> >>Please can you help me more on this to get upto speed on initial setup? It >>would be great help for me. >>I look forward for your kind help.Thanks in advance :) >> >>-Santosh Kumar K > > >