mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02:00
Add ability to restart build of any state
This commit is contained in:
parent
9cd328abcd
commit
ea2c72b4b4
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user