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
Léo-Paul Géneau
gitlab-ce
Commits
4bb3787e
Commit
4bb3787e
authored
Jul 15, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to make the URL more consistent between Rails and API
parent
c23f2aa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lib/api/builds.rb
lib/api/builds.rb
+2
-2
spec/requests/api/builds_spec.rb
spec/requests/api/builds_spec.rb
+2
-2
No files found.
lib/api/builds.rb
View file @
4bb3787e
...
...
@@ -80,8 +80,8 @@ module API
# ref_name (required) - The ref from repository
# job (required) - The name for the build
# Example Request:
# GET /projects/:id/artifacts/
download/:ref_name
?job=name
get
':id/builds/artifacts/
download/:ref_name
'
,
# GET /projects/:id/artifacts/
:ref_name/download
?job=name
get
':id/builds/artifacts/
:ref_name/download
'
,
requirements:
{
ref_name:
/.+/
}
do
builds
=
user_project
.
builds_for
(
params
[
:job
],
params
[
:ref_name
])
...
...
spec/requests/api/builds_spec.rb
View file @
4bb3787e
...
...
@@ -187,12 +187,12 @@ describe API::API, api: true do
end
end
describe
'GET /projects/:id/artifacts/:ref_name/
:build_
name'
do
describe
'GET /projects/:id/artifacts/:ref_name/
download?job=
name'
do
include_context
'artifacts from ref and build name'
def
path_from_ref
(
ref
=
pipeline
.
sha
,
job
=
build
.
name
)
api
(
"/projects/
#{
project
.
id
}
/builds/artifacts/
download/
#{
ref
}
?job=
#{
job
}
"
,
"/projects/
#{
project
.
id
}
/builds/artifacts/
#{
ref
}
/download
?job=
#{
job
}
"
,
user
)
end
...
...
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