summaryrefslogtreecommitdiff
path: root/app/models/ci/pipeline.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/pipeline.rb')
-rw-r--r--app/models/ci/pipeline.rb3
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