Re: Fwd: How to run upstream and downstream jobs on same executor

2021-04-05 Thread Gianluca Massera
Hi, From what I know, a job will keep an executor busy till it completes. Hence, if an upstream job needs to do something after a downstream completes, then Jenkins needs two executors. Otherwise, if an upstream job doesn't need to anything after a downstream completes, then you trigger a do

Re: Fwd: How to run upstream and downstream jobs on same executor

2021-04-05 Thread kamthe kirtee
Hi, My question is if upstream job is running on executor 1 and when downstream job is triggered, that should run on executor 1 or executor 2 As soon as downstream job started running, upstream job should not be running on any of the executor. Beacuse I don't want upstream job to wait for the d

Re: Fwd: How to run upstream and downstream jobs on same executor

2021-04-05 Thread Gianluca Massera
Hi, from what I know, it's not achievable. When a job is waiting for a downstream to complete, it keeps an executor occupied. So, the downstream job needs to run on a different executor. But, frankly, that seems more of https://xyproblem.info/ :-) So, what is your problem? what do you need?

Fwd: How to run upstream and downstream jobs on same executor

2021-04-05 Thread kamthe kirtee
-- Forwarded message - From: kamthe kirtee Date: Mon, 5 Apr, 2021, 4:36 pm Subject: How to run upstream and downstream jobs on same executor To: Hi team, Suppose in jenkins I have 1 slave and in that slave I have 1 executor Also I have one upstream job and one downstream job