Comments are inline

On Thu, Dec 8, 2016 at 9:20 AM Mike Neary <mcnear...@gmail.com> wrote:

> I have a project that poll's Git every 5 minutes and builds on changes
> using the Git plugin in a pipeline job.  The issue I'm having is that if
> the build fails (inside of 5 minutes), the next poll causes another build.
>

I would expect that if the pipeline build fails before the next poll, then
the next poll would detect there were no changes since the previous poll,
and would not start a new build.  However, it may be that the pipeline
assumes build failures (as opposed to unstable builds) should be retried.
I've not seen that behavior, but I tend to prefer the notifyCommit / web
hook technique rather than polling for changes.


> I also had a situation where a build started but didn't finish within the
> 5 minutes (ran for 4 hours without finishing) and so another build was put
> in the queue, eventually leading to more than 50 jobs in the queue.
>
>
I think that might reasonably be the expected behavior of the pipeline
code.  Pipelines allow multiple concurrent execution of the same job, and
it may be that the pipeline is assuming that a specific SHA1 is not "built"
until the job has completed.


> Is this expected behavior?  I would more expect once a pull is done that
> the next poll would find no changes and do nothing.
>
> Jenkins v2.19.4
> Git plugin v3.0.1
>
> --
> 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/81cb070c-7ce9-4a63-8db6-5f0c88266c55%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/81cb070c-7ce9-4a63-8db6-5f0c88266c55%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAO49JtEF6M%3DrFpMhZ1jd%3DMzbVPC%2B89Yj3n7RXVpzY-T0vNOVXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to