From 534057976b946766f707266e2562d5a3af6a2183 Mon Sep 17 00:00:00 2001 From: ericzzzzzzz <102683393+ericzzzzzzz@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:03:13 -0500 Subject: [PATCH] kind/fix: allow-pipelinetask-execution-evaluation v1beta1 src --- pkg/apis/pipeline/v1beta1/when_types.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/apis/pipeline/v1beta1/when_types.go b/pkg/apis/pipeline/v1beta1/when_types.go index 8cea2f5ebf1..f792ec199c8 100644 --- a/pkg/apis/pipeline/v1beta1/when_types.go +++ b/pkg/apis/pipeline/v1beta1/when_types.go @@ -105,10 +105,7 @@ type WhenExpressions []WhenExpression // if the Task should be skipped. func (wes WhenExpressions) AllowsExecution(evaluatedCEL map[string]bool) bool { for _, we := range wes { - if we.CEL != "" { - return evaluatedCEL[we.CEL] - } - if !we.isTrue() { + if !we.isTrue() || (we.CEL != "" && !evaluatedCEL[we.CEL]) { return false } }