Fix build number not resetting on successful build
This commit is contained in:
parent
e0662bba40
commit
64fa81f620
@ -198,7 +198,11 @@ func updateBuildState(item domain.BuildQueueItem, buildStatus domain.PackageStat
|
||||
state.Status = string(buildStatus)
|
||||
state.Type = string(item.Type)
|
||||
state.BuildVersion = item.BuildVersion
|
||||
if state.Status == string(domain.Built) {
|
||||
state.BuildNumber = 0
|
||||
} else {
|
||||
state.BuildNumber++
|
||||
}
|
||||
helpers.DBInst.UpdateBuildState(state)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user