Skip to content
Snippets Groups Projects
Commit b3d380ec authored by Douwe Maan's avatar Douwe Maan
Browse files

Add CI::Build#retried? method.

parent 72f02953
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -109,6 +109,11 @@ module Ci
def retryable?
commands.present?
end
def retried?
!self.commit.latest_builds_for_ref(self.ref).include?(self)
end
def trace_html
html = Ci::Ansi2html::convert(trace) if trace.present?
html || ''
Loading
Loading
Loading
Loading
@@ -23,7 +23,7 @@
= build.id
 
 
- unless @commit.latest_builds_for_ref(@build.ref).include?(@build)
- if @build.retried?
%li.active
%a
Build ##{@build.id}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment