Fix build_updated

This commit is contained in:
Kamil Trzcinski 2016-09-19 17:20:30 +02:00
parent de61efed0f
commit c826ad4550

View file

@ -242,7 +242,8 @@ module Ci
def build_updated
with_lock do
case reload.latest_builds_status
reload
case latest_builds_status
when 'pending' then enqueue
when 'running' then run
when 'success' then succeed