summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/ci/image_for_build_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/image_for_build_service.rb b/app/services/ci/image_for_build_service.rb
index 17ce95073cb..026a727a8f9 100644
--- a/app/services/ci/image_for_build_service.rb
+++ b/app/services/ci/image_for_build_service.rb
@@ -12,7 +12,7 @@ module Ci
pipelines.latest
end.first
- image_name = image_for_status(latest_pipeline.status)
+ image_name = image_for_status(latest_pipeline.try(:status))
image_path = Rails.root.join('public/ci', image_name)
OpenStruct.new(path: image_path, name: image_name)