#755: update RpmObserver

This commit is contained in:
Vokhmin Alexey V 2012-12-11 20:56:17 +04:00
parent eba86106ca
commit df144b78e0
1 changed files with 4 additions and 3 deletions

View File

@ -6,10 +6,14 @@ module AbfWorker
bl = BuildList.find options['id']
status = options['status'].to_i
item = find_or_create_item(bl)
fill_container_data(bl, options) if status != BUILD_STARTED
case status
when BUILD_COMPLETED
bl.build_success
item.update_attributes({:status => BuildServer::SUCCESS})
bl.now_publish if bl.auto_publish?
when BUILD_FAILED
bl.build_error
item.update_attributes({:status => BuildServer::BUILD_ERROR})
@ -21,9 +25,6 @@ module AbfWorker
bl.build_canceled
item.update_attributes({:status => BuildList::BUILD_CANCELED})
end
if status != BUILD_STARTED
fill_container_data bl, options
end
end
class << self