#390: added hook for build_canceled
This commit is contained in:
parent
90f921e038
commit
b55e9bf25a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue