debian-mirror-gitlab/lib/gitlab/ci/status/bridge/failed.rb

21 lines
426 B
Ruby
Raw Normal View History

2020-04-22 19:07:51 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module Status
module Bridge
class Failed < Status::Build::Failed
2020-06-23 00:09:42 +05:30
private
def failure_reason_message
[
self.class.reasons.fetch(subject.failure_reason.to_sym),
subject.options[:downstream_errors]
].flatten.compact.join(', ')
end
2020-04-22 19:07:51 +05:30
end
end
end
end
end