diff options
Diffstat (limited to 'app/helpers/ci/builds_helper.rb')
-rw-r--r-- | app/helpers/ci/builds_helper.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/helpers/ci/builds_helper.rb b/app/helpers/ci/builds_helper.rb index bfdb830f2c3..b4a2cf7bb1e 100644 --- a/app/helpers/ci/builds_helper.rb +++ b/app/helpers/ci/builds_helper.rb @@ -36,5 +36,15 @@ module Ci description: project_job_url(@project, @build) } end + + def prepare_failed_jobs_summary_data(failed_builds) + failed_builds.map do |build| + { + id: build.id, + failure: build.present.callout_failure_message, + failure_summary: build_summary(build) + } + end.to_json + end end end |