diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-03 21:42:41 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-03 21:42:41 +0800 |
commit | 56f583915806aea422d1d2922fa378fc09f0ab1c (patch) | |
tree | 0195bdef37b50b77a2275cdb1037a80161e39fa2 | |
parent | 7fb6a73db505b73a5b092f7e60eb4221d32308e2 (diff) | |
download | gitlab-ce-56f583915806aea422d1d2922fa378fc09f0ab1c.tar.gz |
HasStatus.status is now already aware of that
-rw-r--r-- | app/services/ci/process_pipeline_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/ci/process_pipeline_service.rb b/app/services/ci/process_pipeline_service.rb index f81f44f6716..36c93dddadb 100644 --- a/app/services/ci/process_pipeline_service.rb +++ b/app/services/ci/process_pipeline_service.rb @@ -61,8 +61,7 @@ module Ci end def status_for_prior_stages(index) - pipeline.builds.exclude_ignored.where('stage_idx < ?', index). - latest.status || 'success' + pipeline.builds.where('stage_idx < ?', index).latest.status || 'success' end def stage_indexes_of_created_builds |