How to configure mutually exclusive pipelines in workflow? #5649
-
Hi, I'm trying to configure a workflow, containing 2 pipelines that are mutually exclusive. name: TestMutualExclusive
version: v2.0
workflow:
TstPip1:
pipeline: TstPip1
TstPip2_1:
depends_on:
- fork
conditions:
check:
- variable: workflow.TstPip1.build.result
operator: ge
value: "1"
pipeline: TestPip
TstPip2_2:
depends_on:
- fork
conditions:
check:
- variable: workflow.TstPip1.build.result
operator: ge
value: "2"
pipeline: TestPip
TstPip3:
depends_on:
- TstPip2_1
- TstPip2_2
pipeline: TestPip When the pipeline (TstPip1) is executed the values (exported as variables using "worker export ...") are derived which drive the conditions for the middle pipelines (TstPip2_1 and TstPip2_2). The issue is that TstPip3 is only executed, when both TstPip2_1 and TstPip2_2 are executed. But as soon as one of the middle pipelines is not executed (nature of mutually exclusivity), TstPip3 is not executed, not even attempted. Any suggestions on how to configure such workflow? Kr, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi. To be executed, all parent pipelines of a pipeline have to be executed. In your example, if TstPip2_1 or TstPip2_2 is not executed, the pipeline TstPip3 can't be executed.
|
Beta Was this translation helpful? Give feedback.
Hi. To be executed, all parent pipelines of a pipeline have to be executed. In your example, if TstPip2_1 or TstPip2_2 is not executed, the pipeline TstPip3 can't be executed.
There is probably another way to do what your want, as :