Commit 2d945c61 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'remove_ci_pipeline_enum_ee' into 'master'

Move CI pipeline enum under CE

See merge request gitlab-org/gitlab!53938
parents 7c70520c 3c490906
...@@ -10,6 +10,9 @@ module Enums ...@@ -10,6 +10,9 @@ module Enums
unknown_failure: 0, unknown_failure: 0,
config_error: 1, config_error: 1,
external_validation_failure: 2, external_validation_failure: 2,
activity_limit_exceeded: 20,
size_limit_exceeded: 21,
job_activity_limit_exceeded: 22,
deployments_limit_exceeded: 23 deployments_limit_exceeded: 23
} }
end end
...@@ -77,5 +80,3 @@ module Enums ...@@ -77,5 +80,3 @@ module Enums
end end
end end
end end
Enums::Ci::Pipeline.prepend_if_ee('EE::Enums::Ci::Pipeline')
# frozen_string_literal: true
module EE
module Enums
module Ci
module Pipeline
extend ActiveSupport::Concern
class_methods do
extend ::Gitlab::Utils::Override
override :failure_reasons
def failure_reasons
super.merge(
activity_limit_exceeded: 20,
size_limit_exceeded: 21,
job_activity_limit_exceeded: 22
)
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