Possible to skip duplicate builds?

22 views
Skip to first unread message

Stuart Reynolds

unread,
Feb 4, 2015, 5:14:15 PM2/4/15
to jenkins...@googlegroups.com
We have a case like this:
 JOB_A gets frequently triggered by checkins (and takes 5 minutes)
and triggers:
 JOB_B with PARAMETER=abc
 JOB_B with PARAMETER=xyz

So, for JOB_B I see may see an ever increasing stack of pending jobs:

 JOB_B with PARAMETER=abc 
 JOB_B with PARAMETER=xyz
 JOB_B with PARAMETER=abc
 JOB_B with PARAMETER=xyz
 JOB_B with PARAMETER=abc
 JOB_B with PARAMETER=xyz
  ....


Is it possible to select only the latest 2 builds and exclude the rest? i.e. scheduling   "JOB_B with PARAMETER=abc" squashing earlier versions of this identical task?

Thanks,
- Stuart

Baptiste Mathus

unread,
Feb 5, 2015, 8:07:24 AM2/5/15
to jenkins...@googlegroups.com

Interesting. In case you don't know, squashing builds with same parameter in the queue is already the default behavior.
In that case, I suppose this is due to the alternation of parameters that that doesn't happen.
I guess writing a plugin for that would not be very difficult.

Cheers

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5a53de14-c8a1-46c9-811f-19af76cf0378%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stuart Reynolds

unread,
Feb 5, 2015, 1:24:23 PM2/5/15
to jenkins...@googlegroups.com
Hmm... thanks. Did not know that.
I noticed today that the dependency graph view show double arrows from
job A to B. Perhaps this is the cause. Will investigate.
> You received this message because you are subscribed to a topic in the
> Google Groups "Jenkins Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/jenkinsci-users/eJxLbeKlVHo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> jenkinsci-use...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5kJAxbLChuKmfuzh9%2B2jHu%2BwVPEta_fKts0GGpp4WVcQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages