2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
module Gitlab
|
|
|
|
module Ci
|
|
|
|
module Status
|
|
|
|
module Build
|
|
|
|
class Factory < Status::Factory
|
|
|
|
def self.extended_statuses
|
2018-05-09 12:01:36 +05:30
|
|
|
[[Status::Build::Erased,
|
2018-12-05 23:21:45 +05:30
|
|
|
Status::Build::Scheduled,
|
2018-05-09 12:01:36 +05:30
|
|
|
Status::Build::Manual,
|
|
|
|
Status::Build::Canceled,
|
|
|
|
Status::Build::Created,
|
2019-07-07 11:18:12 +05:30
|
|
|
Status::Build::Preparing,
|
2018-05-09 12:01:36 +05:30
|
|
|
Status::Build::Pending,
|
|
|
|
Status::Build::Skipped],
|
|
|
|
[Status::Build::Cancelable,
|
2017-08-17 22:00:37 +05:30
|
|
|
Status::Build::Retryable],
|
2019-07-07 11:18:12 +05:30
|
|
|
[Status::Build::FailedUnmetPrerequisites,
|
|
|
|
Status::Build::Failed],
|
2017-08-17 22:00:37 +05:30
|
|
|
[Status::Build::FailedAllowed,
|
2018-12-05 23:21:45 +05:30
|
|
|
Status::Build::Unschedule,
|
2017-08-17 22:00:37 +05:30
|
|
|
Status::Build::Play,
|
|
|
|
Status::Build::Stop],
|
2018-05-09 12:01:36 +05:30
|
|
|
[Status::Build::Action],
|
|
|
|
[Status::Build::Retried]]
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def self.common_helpers
|
|
|
|
Status::Build::Common
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|