#755: update RpmObserver
This commit is contained in:
parent
eba86106ca
commit
df144b78e0
|
@ -6,10 +6,14 @@ module AbfWorker
|
||||||
bl = BuildList.find options['id']
|
bl = BuildList.find options['id']
|
||||||
status = options['status'].to_i
|
status = options['status'].to_i
|
||||||
item = find_or_create_item(bl)
|
item = find_or_create_item(bl)
|
||||||
|
|
||||||
|
fill_container_data(bl, options) if status != BUILD_STARTED
|
||||||
|
|
||||||
case status
|
case status
|
||||||
when BUILD_COMPLETED
|
when BUILD_COMPLETED
|
||||||
bl.build_success
|
bl.build_success
|
||||||
item.update_attributes({:status => BuildServer::SUCCESS})
|
item.update_attributes({:status => BuildServer::SUCCESS})
|
||||||
|
bl.now_publish if bl.auto_publish?
|
||||||
when BUILD_FAILED
|
when BUILD_FAILED
|
||||||
bl.build_error
|
bl.build_error
|
||||||
item.update_attributes({:status => BuildServer::BUILD_ERROR})
|
item.update_attributes({:status => BuildServer::BUILD_ERROR})
|
||||||
|
@ -21,9 +25,6 @@ module AbfWorker
|
||||||
bl.build_canceled
|
bl.build_canceled
|
||||||
item.update_attributes({:status => BuildList::BUILD_CANCELED})
|
item.update_attributes({:status => BuildList::BUILD_CANCELED})
|
||||||
end
|
end
|
||||||
if status != BUILD_STARTED
|
|
||||||
fill_container_data bl, options
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
|
|
Loading…
Reference in New Issue