Skip to content

Pipeline failed e-mail: undefined method `trace_html' for `GenericCommitStatus`

Created by @stanhu.

https://sentry.gitlap.com/gitlab/gitlabcom/issues/15002/

NoMethodError: undefined method `trace_html' for #<GenericCommitStatus:0x007f8dbeda8e98>
Did you mean?  trace=
  app/views/notify/pipeline_failed_email.html.haml:166:in `block in _app_views_notify_pipeline_failed_email_html_haml__2439210714518121635_70123914135140'
    = build.trace_html(last_lines: 10).html_safe
  app/views/notify/pipeline_failed_email.html.haml:150:in `_app_views_notify_pipeline_failed_email_html_haml__2439210714518121635_70123914135140'
    - failed.each do |build|
  app/mailers/emails/pipelines.rb:25:in `block (2 levels) in pipeline_mail'
    format.html { render layout: false }
  app/mailers/emails/pipelines.rb:25:in `block in pipeline_mail'
    format.html { render layout: false }
  app/mailers/emails/pipelines.rb:22:in `pipeline_mail'
    mail(bcc: recipients,
...
(120 additional frame(s) were not displayed)

ActionView::Template::Error: undefined method `trace_html' for #<GenericCommitStatus:0x007f8dbeda8e98>
Did you mean?  trace=