diff options
Diffstat (limited to 'app/controllers/projects/pipelines_controller.rb')
-rw-r--r-- | app/controllers/projects/pipelines_controller.rb | 8 |
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 |