#757: create container when tests failed

This commit is contained in:
Vokhmin Alexey V 2013-02-19 13:58:34 +04:00
parent d6bb342c02
commit a6dcf4d712
1 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,6 @@ module AbfWorker
when COMPLETED when COMPLETED
subject.build_success subject.build_success
subject.now_publish if subject.auto_publish? subject.now_publish if subject.auto_publish?
subject.publish_container if subject.auto_create_container?
when FAILED when FAILED
subject.build_error subject.build_error
item.update_attributes({:status => BuildList::BUILD_ERROR}) item.update_attributes({:status => BuildList::BUILD_ERROR})
@ -31,7 +30,10 @@ module AbfWorker
subject.tests_failed subject.tests_failed
end end
item.update_attributes({:status => BuildList::SUCCESS}) if [TESTS_FAILED, COMPLETED].include?(status) if [TESTS_FAILED, COMPLETED].include?(status)
item.update_attributes({:status => BuildList::SUCCESS})
subject.publish_container if subject.auto_create_container?
end
end end
protected protected