Commit ddb313ae authored by Shinya Maeda's avatar Shinya Maeda Committed by Alessio Caiazza

Remove Scheduled Status class from pipeline

parent 6d712148
......@@ -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
......
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
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