diff --git a/tekton/predicates.go b/tekton/predicates.go index 88ddf7d0b..afa70dd2a 100644 --- a/tekton/predicates.go +++ b/tekton/predicates.go @@ -81,7 +81,7 @@ func BuildPipelineRunFailedPredicate() predicate.Predicate { }, UpdateFunc: func(e event.UpdateEvent) bool { return IsBuildPipelineRun(e.ObjectNew) && - isChainsDoneWithPipelineRun(e.ObjectNew) && + helpers.HasPipelineRunFinished(e.ObjectNew) && !helpers.HasPipelineRunSucceeded(e.ObjectNew) }, }