From 357283a8d47fb2ef1ec9646f482b4e6e7a33ca92 Mon Sep 17 00:00:00 2001 From: Erick Fejta Date: Tue, 23 Jun 2020 23:35:05 -0700 Subject: [PATCH] Update each job to each jobs' reported state --- prow/crier/controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prow/crier/controller.go b/prow/crier/controller.go index 41ceb30d1877..6d708005a73d 100644 --- a/prow/crier/controller.go +++ b/prow/crier/controller.go @@ -279,8 +279,8 @@ func (c *Controller) processNextItem() bool { } log.Info("Reported job, now will update pj") - reportedState := pj.Status.State for _, pjob := range pjs { + reportedState := pjob.Status.State // We have to retry here, if we return we lose the information that we already reported this job. if err := retry.RetryOnConflict(retry.DefaultBackoff, func() error { // Get it first, this is very cheap