Remove Scheduled Status class from pipeline

This commit is contained in:
Shinya Maeda 2018-09-27 13:52:15 +09:00 committed by Alessio Caiazza
parent 6d712148c9
commit ddb313aebf
4 changed files with 2 additions and 24 deletions

View File

@ -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|

View File

@ -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)

View File

@ -5,7 +5,6 @@ module Gitlab
class Factory < Status::Factory
def self.extended_statuses
[[Status::SuccessWarning,
Status::Pipeline::Scheduled,
Status::Pipeline::Blocked]]
end

View File

@ -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