From b56d0cab64d54588c2859beb71e4e76286c8540c Mon Sep 17 00:00:00 2001 From: Easton Crupper <65553218+ecrupper@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:23:24 -0400 Subject: [PATCH] fix(exec): use exec client when updating build after failed item version check (#499) --- cmd/vela-worker/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/vela-worker/exec.go b/cmd/vela-worker/exec.go index 4e336997..81190db7 100644 --- a/cmd/vela-worker/exec.go +++ b/cmd/vela-worker/exec.go @@ -106,7 +106,7 @@ func (w *Worker) exec(index int, config *library.Worker) error { build.SetStatus(constants.StatusError) build.SetFinished(time.Now().UTC().Unix()) - _, _, err := w.VelaClient.Build.Update(item.Repo.GetOrg(), item.Repo.GetName(), build) + _, _, err := execBuildClient.Build.Update(item.Repo.GetOrg(), item.Repo.GetName(), build) if err != nil { logrus.Errorf("Unable to set build status to %s: %s", constants.StatusFailure, err) return err