Configuring the Jenkins polling interval to: * * * * *
will poll the SCM for every minute.
Is there a way to configure it to poll less than a minute? for example every 30 seconds?
Jenkins uses Cron syntax for polling. Not sure you can get to 30 seconds since Cron has a 60 sec granularity.
Check out this: How to get a unix script to run every 15 seconds?
Get your SCM to trigger the build instead of polling for it.
What SCM are you using?
Edit:
You can tell Jenkins to wait 'x' seconds after the check in change before starting the build. I have the same issue, dev's doing multiple check ins.
There are two options to configure this, a system wide option or a per-job option.
The system wide option is under Manage -> Configure System -> Quiet Period. It is in seconds.
The per job option is under Advanced Project Options, and is also called Quiet Period.
If you set quiet period to 90, Jenkins will wait until 90 seconds after the last detected check in before starting the build.
I've found the solution, and explained it here:
Jenkins Perforce Plugin - multiple changelists in a single poll
Thanks for the ideas!
© 2022 - 2024 — McMap. All rights reserved.