Port "Implement `failure_reason` on `ci_builds`" to EE

What does this MR do?

Port "Implement failure_reason on ci_builds" to EE

 > g di spec/services/ci/retry_build_service_spec.rb
diff --cc spec/services/ci/retry_build_service_spec.rb
index 7e7a68c947,ebd27f95fc..0000000000
--- a/spec/services/ci/retry_build_service_spec.rb
+++ b/spec/services/ci/retry_build_service_spec.rb
@@@ -22,8 -22,7 +22,8 @@@ describe Ci::RetryBuildService d
      %i[type lock_version target_url base_tags
         commit_id deployments erased_by_id last_deployment project_id
         runner_id tag_taggings taggings tags trigger_request_id
 -       user_id auto_canceled_by_id retried failure_reason].freeze
 +       user_id auto_canceled_by_id retried sourced_pipelines
-        artifacts_file_store artifacts_metadata_store].freeze
++       artifacts_file_store artifacts_metadata_store failure_reason].freeze

    shared_examples 'build duplication' do
      let(:stage) do

What are the relevant issue numbers?