Use cached size when passing artifacts to Runner

This commit is contained in:
Kamil Trzciński 2018-11-20 11:05:15 +01:00
parent 624ec62238
commit c742d3ba98
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Use cached size when passing artifacts to Runner
merge_request:
author:
type: performance

View File

@ -1142,7 +1142,8 @@ module API
end
class JobArtifactFile < Grape::Entity
expose :filename, :size
expose :filename
expose :cached_size, as: :size
end
class JobArtifact < Grape::Entity