gitlab-org--gitlab-foss/lib/gitlab/ci/status/build/factory.rb
Tiger de03a8bcb4 Detailed status for builds that fail prerequisites
Create FailedUnmetPrerequisites status to allow custom
messaging for builds that were unable to be queued due
to failing to meet prerequisites (eg. failing to create
Kubernetes namespace for deployment).
2019-04-02 11:04:41 +11:00

36 lines
1 KiB
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module Status
module Build
class Factory < Status::Factory
def self.extended_statuses
[[Status::Build::Erased,
Status::Build::Scheduled,
Status::Build::Manual,
Status::Build::Canceled,
Status::Build::Created,
Status::Build::Preparing,
Status::Build::Pending,
Status::Build::Skipped],
[Status::Build::Cancelable,
Status::Build::Retryable],
[Status::Build::FailedUnmetPrerequisites,
Status::Build::Failed],
[Status::Build::FailedAllowed,
Status::Build::Unschedule,
Status::Build::Play,
Status::Build::Stop],
[Status::Build::Action],
[Status::Build::Retried]]
end
def self.common_helpers
Status::Build::Common
end
end
end
end
end
end