Remove Scheduled Status class from pipeline
This commit is contained in:
parent
6d712148c9
commit
ddb313aebf
|
@ -24,7 +24,7 @@ module Ci
|
|||
def process_stage(index)
|
||||
current_status = status_for_prior_stages(index)
|
||||
|
||||
return if HasStatus::BLOCKED_STATUS == current_status
|
||||
return if HasStatus::BLOCKED_STATUS.include?(current_status)
|
||||
|
||||
if HasStatus::COMPLETED_STATUSES.include?(current_status)
|
||||
created_builds_in_stage(index).select do |build|
|
||||
|
|
|
@ -8,7 +8,7 @@ module Gitlab
|
|||
end
|
||||
|
||||
def label
|
||||
s_('CiStatusLabel|waiting for manual action')
|
||||
s_('CiStatusLabel|waiting for manual action or delayed job')
|
||||
end
|
||||
|
||||
def self.matches?(pipeline, user)
|
||||
|
|
|
@ -5,7 +5,6 @@ module Gitlab
|
|||
class Factory < Status::Factory
|
||||
def self.extended_statuses
|
||||
[[Status::SuccessWarning,
|
||||
Status::Pipeline::Scheduled,
|
||||
Status::Pipeline::Blocked]]
|
||||
end
|
||||
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
module Gitlab
|
||||
module Ci
|
||||
module Status
|
||||
module Pipeline
|
||||
class Scheduled < Status::Extended
|
||||
def text
|
||||
s_('CiStatusText|scheduled')
|
||||
end
|
||||
|
||||
def label
|
||||
s_('CiStatusLabel|waiting for scheduled job')
|
||||
end
|
||||
|
||||
def self.matches?(pipeline, user)
|
||||
pipeline.scheduled?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue