diff --git a/server/build.go b/server/build.go index cae90e64..f1d6e897 100644 --- a/server/build.go +++ b/server/build.go @@ -496,11 +496,8 @@ func PostBuild(c *gin.Context) { } switch build.Status { - case model.StatusPending, - model.StatusRunning, - model.StatusDeclined, - model.StatusBlocked, - model.StatusError: + case model.StatusDeclined, + model.StatusBlocked: c.String(500, "cannot restart a build with status %s", build.Status) return }