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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
e7d0746d
Commit
e7d0746d
authored
Dec 28, 2015
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add 'not_found' notifications in build/trace details
parent
d398e78e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
lib/api/builds.rb
lib/api/builds.rb
+6
-2
No files found.
lib/api/builds.rb
View file @
e7d0746d
...
...
@@ -19,7 +19,7 @@ module API
present
paginate
(
builds
),
with:
Entities
::
Build
end
# G
ET
builds for a specific commit of a project
# G
et
builds for a specific commit of a project
#
# Parameters:
# id (required) - The ID of a project
...
...
@@ -40,7 +40,10 @@ module API
# Example Request:
# GET /projects/:id/builds/:build_id
get
':id/builds/:build_id'
do
present
get_build
(
params
[
:build_id
]),
with:
Entities
::
Build
build
=
get_build
(
params
[
:build_id
])
return
not_found!
(
build
)
unless
build
present
build
,
with:
Entities
::
Build
end
# Get a trace of a specific build of a project
...
...
@@ -52,6 +55,7 @@ module API
# GET /projects/:id/build/:build_id/trace
get
':id/builds/:build_id/trace'
do
build
=
get_build
(
params
[
:build_id
])
return
not_found!
(
build
)
unless
build
header
'Content-Disposition'
,
"infile; filename=
\"
#{
build
.
id
}
.log
\"
"
content_type
'text/plain'
...
...
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