Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b4f0e66c
Commit
b4f0e66c
authored
Oct 25, 2019
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add html response to #test_report
parent
3ca2042d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
app/controllers/projects/pipelines_controller.rb
app/controllers/projects/pipelines_controller.rb
+14
-7
No files found.
app/controllers/projects/pipelines_controller.rb
View file @
b4f0e66c
...
...
@@ -156,14 +156,21 @@ class Projects::PipelinesController < Projects::ApplicationController
def
test_report
return
unless
Feature
.
enabled?
(
:junit_pipeline_view
,
project
)
if
pipeline_test_report
==
:error
render
json:
{
status: :error_parsing_report
}
return
end
respond_to
do
|
format
|
format
.
html
do
render
'show'
end
render
json:
TestReportSerializer
.
new
(
current_user:
@current_user
)
.
represent
(
pipeline_test_report
)
format
.
json
do
if
pipeline_test_report
==
:error
render
json:
{
status: :error_parsing_report
}
else
render
json:
TestReportSerializer
.
new
(
current_user:
@current_user
)
.
represent
(
pipeline_test_report
)
end
end
end
end
private
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment