summaryrefslogtreecommitdiff
path: root/lib/api/builds.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-20 00:23:45 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-20 00:23:45 +0800
commitf2969b1bb08cbe1d2111e975a2a75d66c16acbef (patch)
tree3324dd32fc21cd481bf8669893131b9f08c84338 /lib/api/builds.rb
parent0882355db354e295fe541d823433d0f43969380e (diff)
downloadgitlab-ce-f2969b1bb08cbe1d2111e975a2a75d66c16acbef.tar.gz
Artifacts are plural, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5347/diffs#note_13173284
Diffstat (limited to 'lib/api/builds.rb')
-rw-r--r--lib/api/builds.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index bb9e8f1ae6e..7e5114052c4 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -70,7 +70,7 @@ module API
build = get_build!(params[:build_id])
- present_artifact!(build.artifacts_file)
+ present_artifacts!(build.artifacts_file)
end
# Download the artifacts file from ref_name and job
@@ -86,7 +86,7 @@ module API
builds = user_project.latest_successful_builds_for(params[:ref_name])
latest_build = builds.find_by!(name: params[:job])
- present_artifact!(latest_build.artifacts_file)
+ present_artifacts!(latest_build.artifacts_file)
end
# Get a trace of a specific build of a project
@@ -198,7 +198,7 @@ module API
get_build(id) || not_found!
end
- def present_artifact!(artifacts_file)
+ def present_artifacts!(artifacts_file)
if !artifacts_file.file_storage?
redirect_to(build.artifacts_file.url)
elsif artifacts_file.exists?