Commit 5e5be2cb authored by Stan Hu's avatar Stan Hu

Merge branch 'revert-f5128708' into 'master'

Revert 'move-ee-commit-status-enums-to-ce' into 'master' [RUN AS-IF-FOSS]

Closes #233025

See merge request gitlab-org/gitlab!38319
parents 9823f9a3 29ce0c58
...@@ -19,14 +19,13 @@ module CommitStatusEnums ...@@ -19,14 +19,13 @@ module CommitStatusEnums
scheduler_failure: 11, scheduler_failure: 11,
data_integrity_failure: 12, data_integrity_failure: 12,
forward_deployment_failure: 13, forward_deployment_failure: 13,
protected_environment_failure: 1_000,
insufficient_bridge_permissions: 1_001, insufficient_bridge_permissions: 1_001,
downstream_bridge_project_not_found: 1_002, downstream_bridge_project_not_found: 1_002,
invalid_bridge_trigger: 1_003, invalid_bridge_trigger: 1_003,
upstream_bridge_project_not_found: 1_004,
insufficient_upstream_permissions: 1_005,
bridge_pipeline_is_child_pipeline: 1_006, bridge_pipeline_is_child_pipeline: 1_006,
downstream_pipeline_creation_failed: 1_007 downstream_pipeline_creation_failed: 1_007
} }
end end
end end
CommitStatusEnums.prepend_if_ee('EE::CommitStatusEnums')
# frozen_string_literal: true
module EE
module CommitStatusEnums
extend ActiveSupport::Concern
class_methods do
extend ::Gitlab::Utils::Override
override :failure_reasons
def failure_reasons
super.merge(protected_environment_failure: 1_000,
upstream_bridge_project_not_found: 1_004,
insufficient_upstream_permissions: 1_005)
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