ActionView::Template::Error: undefined method `last_deployment' for nil:NilClass
https://sentry.gitlap.com/gitlab/gitlabcom/issues/15107/
NoMethodError: undefined method `last_deployment' for nil:NilClass
app/views/projects/builds/show.html.haml:49:in `_app_views_projects_builds_show_html_haml__1928520620939811846_69987207762200'
- if environment.last_deployment
app/controllers/projects/builds_controller.rb:35:in `show'
respond_to do |format|
lib/gitlab/request_profiler/middleware.rb:15:in `call'
@app.call(env)
lib/gitlab/middleware/rails_queue_duration.rb:20:in `call'
@app.call(env)
lib/gitlab/metrics/rack_middleware.rb:29:in `block in call'
retval = trans.run { @app.call(env) }
...
(141 additional frame(s) were not displayed)
ActionView::Template::Error: undefined method `last_deployment' for nil:NilClass