#891: small refactoring
This commit is contained in:
parent
600db48278
commit
796289c57f
|
@ -83,7 +83,7 @@ class ProductBuildList < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
event :build_success do
|
event :build_success do
|
||||||
transition :build_started => :build_completed
|
transition [:build_started, :build_canceling] => :build_completed
|
||||||
end
|
end
|
||||||
|
|
||||||
event :build_error do
|
event :build_error do
|
||||||
|
|
|
@ -15,7 +15,6 @@ module AbfWorker
|
||||||
when CANCELED
|
when CANCELED
|
||||||
pbl.build_canceled
|
pbl.build_canceled
|
||||||
end
|
end
|
||||||
pbl.build_canceled if pbl.build_canceling?
|
|
||||||
if status != STARTED
|
if status != STARTED
|
||||||
update_results(pbl, options)
|
update_results(pbl, options)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue