Jenkins - Configure Jenkins to poll changes in SCM

62

I am working with jenkins and I would like to run the maven goals when there is a change in the svn repository. I've attached a picture with my current configuration.

I know that checking the repository every 5 min is crazy. I would like to run it only when there is a new change, but I could not find the way. Anyway, it is not checking the repository. What am I doing wrong??

Thanks in advanceenter image description here

This question is tagged with jenkins

~ Asked on 2012-04-12 09:41:08

The Best Answer is


74

I think your cron is not correct. According to what you described, you may need to change cron schedule to

*/5 * * * *

What you put in your schedule now mean it will poll the SCM at 5 past of every hour.

~ Answered on 2012-04-12 11:31:53


105

I believe best practice these days is H/5 * * * *, which means every 5 minutes with a hashing factor to avoid all jobs starting at EXACTLY the same time.

~ Answered on 2015-06-14 22:03:33


Most Viewed Questions: