#390: added hook for build_canceled

This commit is contained in:
Vokhmin Alexey V 2014-05-22 03:12:39 +04:00
parent 90f921e038
commit b55e9bf25a
1 changed files with 1 additions and 1 deletions

View File

@ -34,8 +34,8 @@ module AbfWorker
when STARTED when STARTED
subject.start_build subject.start_build
when CANCELED when CANCELED
item.update_attributes({status: BuildList::BUILD_CANCELED}) unless reruninng_tests || subject.tests_failed?
subject.build_canceled subject.build_canceled
item.update_attributes({status: BuildList::BUILD_CANCELED}) unless reruninng_tests
when TESTS_FAILED when TESTS_FAILED
subject.tests_failed subject.tests_failed
end end