summaryrefslogtreecommitdiff
path: root/app/models/ci/build.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r--app/models/ci/build.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 89cc082d0bc..982ba0c04a7 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -573,6 +573,10 @@ module Ci
update_column(:trace, nil)
end
+ def metrics_file
+ job_artifacts_metrics&.file
+ end
+
def needs_touch?
Time.now - updated_at > 15.minutes.to_i
end