Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r--app/controllers/projects/pipelines_controller.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/controllers/projects/pipelines_controller.rb b/app/controllers/projects/pipelines_controller.rb
index ff65f040335..af512ac6f07 100644
--- a/app/controllers/projects/pipelines_controller.rb
+++ b/app/controllers/projects/pipelines_controller.rb
@@ -172,9 +172,15 @@ class Projects::PipelinesController < Projects::ApplicationController
if pipeline_test_report == :error
render json: { status: :error_parsing_report }
else
+ test_reports = if params[:scope] == "with_attachment"
+ pipeline_test_report.with_attachment!
+ else
+ pipeline_test_report
+ end
+
render json: TestReportSerializer
.new(current_user: @current_user)
- .represent(pipeline_test_report)
+ .represent(test_reports)
end
end
end