Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzegorz@gitlab.com>2018-02-06 18:39:20 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2018-02-28 22:58:56 +0300
commitb14c484bb1d174c7c355de2258be1a4414b2cf78 (patch)
treee7cf84f28c964580b74f791d235987948f3cc4a8 /lib/api/runner.rb
parenta7dae52e9d27adde427ef8aa066c0761071a3cd9 (diff)
Merge branch 'use-send-url-for-incompatible-runners' into 'master'
Support SendURL for performing indirect download of artifacts if clients does… See merge request gitlab-org/gitlab-ee!4401
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r--lib/api/runner.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index 1f80646a2ea..e6e85d41806 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -244,11 +244,12 @@ module API
params do
requires :id, type: Integer, desc: %q(Job's ID)
optional :token, type: String, desc: %q(Job's authentication token)
+ optional :direct_download, default: false, type: Boolean, desc: %q(Perform direct download from remote storage instead of proxying artifacts)
end
get '/:id/artifacts' do
job = authenticate_job!
- present_artifacts!(job.artifacts_file)
+ present_artifacts!(job.artifacts_file, direct_download: params[:direct_download])
end
end
end