Commit 56f58391 authored by Lin Jen-Shin's avatar Lin Jen-Shin

HasStatus.status is now already aware of that

parent 7fb6a73d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment