Merge pull request #443 from abf/rosa-build:247-build_error
#247 fix RpmWorkerObserver transitions
This commit is contained in:
commit
f25386dee0
|
@ -23,6 +23,13 @@ module AbfWorker
|
|||
item = find_or_create_item
|
||||
fill_container_data if status != STARTED
|
||||
|
||||
unless subject.valid?
|
||||
item.update_attributes({status: BuildList::BUILD_ERROR})
|
||||
subject.build_error(false)
|
||||
subject.save(validate: false)
|
||||
return
|
||||
end
|
||||
|
||||
rerunning_tests = subject.rerunning_tests?
|
||||
|
||||
case status
|
||||
|
|
Loading…
Reference in New Issue