summaryrefslogtreecommitdiff
path: root/lib/api/jobs.rb
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2018-07-18 23:46:56 +0200
committerPeter Marko <peter.marko@siemens.com>2018-08-14 15:55:02 +0200
commit3a80f030375835f0cfaf105ae6aba7c103f63de5 (patch)
tree421ba004e13f0f78bd864d95a75943c0f3f2c545 /lib/api/jobs.rb
parentd03e7120f2030453a5cfd3e4c47604a5ae6d114a (diff)
downloadgitlab-ce-3a80f030375835f0cfaf105ae6aba7c103f63de5.tar.gz
Expose all artifacts sizes in jobs api
Diffstat (limited to 'lib/api/jobs.rb')
-rw-r--r--lib/api/jobs.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/jobs.rb b/lib/api/jobs.rb
index 10c6e565f09..fc8c52085ab 100644
--- a/lib/api/jobs.rb
+++ b/lib/api/jobs.rb
@@ -38,7 +38,7 @@ module API
builds = user_project.builds.order('id DESC')
builds = filter_builds(builds, params[:scope])
- builds = builds.preload(:user, :job_artifacts_archive, :runner, pipeline: :project)
+ builds = builds.preload(:user, :job_artifacts_archive, :job_artifacts, :runner, pipeline: :project)
present paginate(builds), with: Entities::Job
end
@@ -54,7 +54,7 @@ module API
pipeline = user_project.pipelines.find(params[:pipeline_id])
builds = pipeline.builds
builds = filter_builds(builds, params[:scope])
- builds = builds.preload(:job_artifacts_archive, project: [:namespace])
+ builds = builds.preload(:job_artifacts_archive, :job_artifacts, project: [:namespace])
present paginate(builds), with: Entities::Job
end