#757: update observers

This commit is contained in:
Vokhmin Alexey V 2013-02-19 12:44:05 +04:00
parent 2d25e9838f
commit ed7d246dc4
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module AbfWorker
def update_results(build_list = subject)
results = (build_list.results || []).
select{ |r| r['file_name'] !~ /^abfworker\:\:publish\-worker.*\.log$/ }
select{ |r| r['file_name'] !~ /^abfworker\:\:publish\-(container\-)*worker.*\.log$/ }
results |= options['results']
sort_results_and_save results, build_list
end

View File

@ -18,6 +18,7 @@ module AbfWorker
when COMPLETED
subject.build_success
subject.now_publish if subject.auto_publish?
subject.publish_container if subject.auto_create_container?
when FAILED
subject.build_error
item.update_attributes({:status => BuildList::BUILD_ERROR})