#757: update observers
This commit is contained in:
parent
2d25e9838f
commit
ed7d246dc4
|
@ -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
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue