Skip to content

Commit

Permalink
fix(exec): use exec client when updating build after failed item vers…
Browse files Browse the repository at this point in the history
…ion check
  • Loading branch information
ecrupper committed Aug 24, 2023
1 parent 07aa18d commit 1a803af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/vela-worker/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a803af

Please sign in to comment.