Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Move when condition to higher priority
When using "when" condition in pipelinerun definition we can sometime get into a situation when a task would be skipped due to "when" condition but instead it is skipped either by parent is skipped or result reference is missing. This behaviour has a negative impact on the rest of the tasks in the pipeline. A good example of this issue is represented by this pipeline: A -> B -> C In case B depends on A's result and both A and B uses when condition that both evaluates to false the C is automatically skipped with "Parent Tasks were skipped" even-though C doesn't depend on any previous results. With this change both A and B are skipped by evaluating the "when" condition and C is executed as expected. This commit address the bug #7680. Signed-off-by: Ales Raszka <[email protected]>
- Loading branch information