Skip to content

Commit

Permalink
fix(api/build): zero out error on restarted build (#1042)
Browse files Browse the repository at this point in the history
fixes go-vela/community#462

Co-authored-by: dave vader <48764154+plyr4@users.noreply.github.com>
Co-authored-by: Easton Crupper <65553218+ecrupper@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 19, 2024
1 parent c3281b4 commit d3c6ff8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/build/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func RestartBuild(c *gin.Context) {
b.SetStarted(0)
b.SetFinished(0)
b.SetStatus(constants.StatusPending)
b.SetError("")
b.SetHost("")
b.SetRuntime("")
b.SetDistribution("")
Expand Down

0 comments on commit d3c6ff8

Please sign in to comment.