Skip to content
Snippets Groups Projects
Commit f593abbc authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

There's not always a pipeline

parent 590d61a2
No related branches found
No related tags found
1 merge request!7333Show commit status from latest pipeline
Pipeline #
Loading
@@ -12,7 +12,7 @@ module Ci
Loading
@@ -12,7 +12,7 @@ module Ci
pipelines.latest pipelines.latest
end.first 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) image_path = Rails.root.join('public/ci', image_name)
OpenStruct.new(path: image_path, name: image_name) OpenStruct.new(path: image_path, name: image_name)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment