You can use 2 locks, one locks A from running until B completes and one for C 
and D.

In a different approach, IF C and D ONLY need the built artifacts from A and B, 
then you can have A and B “archive the artifacts” and then have C and D “Copy 
the artifacts” into their workspace and run the tests.

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Brent Scriver
Sent: Tuesday, February 17, 2015 9:16 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Deadlock running out of executors waiting on subjobs via 
parameterized trigger plugin


Hmm, if I do that, while it remedies the deadlock, it means I no longer can 
have multiple runs in parallel in different workspaces, correct?

On Tue, Feb 17, 2015 at 9:10 AM, Ginga, Dick 
<dick.gi...@perkinelmer.com<mailto:dick.gi...@perkinelmer.com>> wrote:
You can use locks to prevent them from running again via the Lock and Latches 
plugin or maybe the Block build when downstream project is building under 
advanced project options will work. I have used the first but not the second.

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>]
 On Behalf Of Brent Scriver
Sent: Tuesday, February 17, 2015 9:02 AM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Re: Deadlock running out of executors waiting on subjobs via 
parameterized trigger plugin


Unfortunately I do need A & B to wait to make sure A & B do not run again until 
C & D are done with those workspaces.

On Tue, Feb 17, 2015 at 7:54 AM, Ginga, Dick 
<dick.gi...@perkinelmer.com<mailto:dick.gi...@perkinelmer.com>> wrote:
If you do not need A and B to wait for C and D to complete, then trigger them 
using a post-build trigger using the Trigger Parameterized Build plugin. This 
will run before A completes but not cause A to wait. Then an executor will 
become available as A terminates

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>]
 On Behalf Of Brent Scriver
Sent: Friday, February 13, 2015 4:27 PM
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Deadlock running out of executors waiting on subjobs via parameterized 
trigger plugin


I'm looking for some help/direction at resolving an odd problem.  We currently 
only have one node (still in the midst of setting up/configuring hardware), and 
we encountered a scenario where we have just a couple executors that can run on 
the machine at once (say 2).  If I start jobs A & B which run jobs C & D via 
the parameterized trigger plugin and wait for those to complete, no jobs ever 
finish.  C & D are never started due to lack of executors and A & B cannot 
complete waiting for those jobs.

We are using Perforce and I am trying to be efficient with workspaces as 
syncing new workspaces is really expensive (we are already at gigs of data) 
part of the objective is to reuse the workspace between the jobs (so C & D can 
run within the workspaces set up by A & B).

Is there a detail I'm missing?  None of the jobs are set up to block waiting 
for upstream or downstream jobs to finish.

I'm on (with versions of job related plugins in case there is an interaction):
* Jenkins 1.592
* Build Pipeline Plugin 1.4.5
* External Job Monitor Plugin 1,4
* Join Plugin 1.15
* Matrix Project Plugin 1.4
* Node & Label Parameter Plugin 1.5.1
* Parameterized Trigger Plugin 2.25

I did have the job weight plugin at one point, but no longer.


--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1fc6b4ef-f34d-4e45-a4aa-96e22cb57a79%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/1fc6b4ef-f34d-4e45-a4aa-96e22cb57a79%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 a topic in the Google 
Groups "Jenkins Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jenkinsci-users/iR4GsaOWHAQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F997C%40AMERMBX02.PERKINELMER.NET<https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F997C%40AMERMBX02.PERKINELMER.NET?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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKuUXCSwvG-Y%3DPn1c-pw21fBBBsKhWwQuL%2B4TcQZ1XFjCBgMcw%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAKuUXCSwvG-Y%3DPn1c-pw21fBBBsKhWwQuL%2B4TcQZ1XFjCBgMcw%40mail.gmail.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 a topic in the Google 
Groups "Jenkins Users" group.
To unsubscribe from this topic, visit 
https://groups.google.com/d/topic/jenkinsci-users/iR4GsaOWHAQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F9E0C%40AMERMBX02.PERKINELMER.NET<https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F9E0C%40AMERMBX02.PERKINELMER.NET?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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAKuUXCTQkJiB7sTDXX_aF_zLrzYsb2Tt7ZvfnhiFJRkCrsKyBw%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAKuUXCTQkJiB7sTDXX_aF_zLrzYsb2Tt7ZvfnhiFJRkCrsKyBw%40mail.gmail.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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E4F9E3F%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

Reply via email to