Hi,

Yes, you can set the job to be triggered by SCM change using the same cron
style configuration for the polling interval.  I have jobs that poll only
at a particular hour as you described.  If there are any changes, the job
starts and if there are no changes, the job does not run.  The polling will
only occur at the time(s) set in the configuration.

If you have a job that runs longer than the polling interval and there are
any number of changes, the job will be queued to run.  If the job is
already on the queue, it will not be queued again but will run as expected
when it appropriate.  It will run with the latest scm data at the time the
job starts, not running with the state of the scm at the time that it was
queued.




On Wed, Jun 19, 2013 at 8:33 AM, David Aldrich
<david.aldr...@emea.nec.com>wrote:

>  Hi****
>
> ** **
>
> I think I understand the basics of Jenkins quite well but there is one
> area in which I am unsure how it will behave.****
>
> ** **
>
> I have some long regression tests, which I trigger using cron type
> schedules.  Typically, they run once per day at 8pm.  However, if no code
> changes have occurred that day, this is rather wasteful.  So I could,
> instead, start the tests in response to polling the code repository.****
>
> ** **
>
> My question is, does Jenkins stop polling the repository while a job is
> running?****
>
> ** **
>
> Suppose my test runs for x hours and, during that time, there are y
> commits.  After x hours has elapsed, will the test be queued once or y
> times?****
>
> ** **
>
> Best regards****
>
> ** **
>
> David****
>
> ** **
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to