File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -90,4 +90,8 @@ def reset_progress!
90
90
update! ( state : 'pending_build' , agent_id : nil )
91
91
end
92
92
end
93
+
94
+ def log_artefact ( distro_id )
95
+ artefacts . failed . where ( distro : distro_id ) . find { _1 . filename . end_with? ( '.log' ) }
96
+ end
93
97
end
Original file line number Diff line number Diff line change 30
30
<% end %>
31
31
<%= d . name %>
32
32
<% if task . progress . failed . include? ( d . id ) %>
33
- <% log_artefact = task . artefacts . failed . where ( distro : d . id ) . find { _1 . filename . end_with? ( '.log' ) } %>
33
+ <% log_artefact = task . log_artefact ( d . id ) %>
34
34
<% if log_artefact . present? && log_artefact . attachment . present? && log_artefact . attachment . blob . present? %>
35
35
<%= link_to 'log' , rails_blob_path ( log_artefact . attachment . blob ) %>
36
36
<% end %>
You can’t perform that action at this time.
0 commit comments