diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 17:20:30 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-09-19 17:20:30 +0200 |
commit | c826ad455018deccdb66a64dcb72ce8d4b177a99 (patch) | |
tree | c32b9a76c8a2fab9df8e601e6442646cf85316d7 | |
parent | de61efed0f3208f6148ac878d9cc97e65b795d18 (diff) | |
download | gitlab-ce-fix-regression-in-handling-build-updated.tar.gz |
Fix build_updatedfix-regression-in-handling-build-updated
-rw-r--r-- | app/models/ci/pipeline.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index efa9f547f81..ed793f42d54 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -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 |