Workflows use the previous (completed) build's checkouts to determine what SCMs 
should participate in polling. Without such a build, it's not known whether 
there's even an SCM in use. So the option with no previous (completed) build is 
to never build, or to always build, on polling. And with only these options, 
this seems like the saner choice -- otherwise a newly created job will build 
every poll interval (which frequently is much shorter than 3 hours), or never, 
until a build has been completed -- which, given features like waiting for user 
input, could well take forever. I expect it is also likely that jobs initially 
will be triggered once by users manually, so this should never be a big issue, 
as opposed to the alternative behavior.

Just a guess though.

On 02.01.2016, at 21:03, Craig Rodrigues <rodr...@freebsd.org> wrote:

> Hi,
> 
> I have a workflow script and am using the checkout() function to checkout
> a workspace with Subversion:
> 
> https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L113
> 
> For this workflow, I have enabled SCM polling every 3 hours.
> I see this SCM polling log: 
> https://jenkins.freebsd.org/job/FreeBSD_HEAD/scmPollLog/
> 
> In the log:
> 
> Started on Jan 2, 2016 6:28:36 PM
> no previous build to compare to
> Done. Took 0 ms
> No changes
> 
> 
> If no previous build has been done, shouldn't SCM polling trigger a new build 
> instead of bailing?
> 
> --
> Craig
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/CAG%3DrPVdcwBL5b%3DFZYDLewD6fyN%3D%2Bj661Wgq644u71ps6eqT%2BOw%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1AEC94D0-8D2C-4DD4-8829-F4B211FCC013%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to