Skip to content
Snippets Groups Projects
Commit d4522de2 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Revert adding new methods in CI/CD stage class

parent 056f1b70
No related branches found
No related tags found
No related merge requests found
Loading
@@ -19,10 +19,6 @@ module Ci
Loading
@@ -19,10 +19,6 @@ module Ci
name name
end end
   
def index
statuses.first.stage_idx
end
def statuses_count def statuses_count
@statuses_count ||= statuses.count @statuses_count ||= statuses.count
end end
Loading
@@ -49,14 +45,6 @@ module Ci
Loading
@@ -49,14 +45,6 @@ module Ci
status.to_s == 'success' status.to_s == 'success'
end end
   
def failed?
status.to_s == 'failed'
end
def canceled?
status.to_s == 'canceled'
end
def has_warnings? def has_warnings?
if @warnings.nil? if @warnings.nil?
statuses.latest.failed_but_allowed.any? statuses.latest.failed_but_allowed.any?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment