summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-05 22:58:38 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-05 22:58:38 +0800
commit28e324ae67821e19159d66a554065ae11fcfb42c (patch)
treefdc179b9e0e0100fd4071be787b30e7592b5bf28 /lib
parent1a36493d134328fa5b9ac3d3a04e43e72bdf67bb (diff)
downloadgitlab-ce-28e324ae67821e19159d66a554065ae11fcfb42c.tar.gz
Use Gitlab-Workhorse-Send-Data to send entry:
Closes #19224, Closes #19128 Also requires this MR to work: https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/53
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/workhorse.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb
index ef1241f8600..ed1c5da0b3c 100644
--- a/lib/gitlab/workhorse.rb
+++ b/lib/gitlab/workhorse.rb
@@ -65,6 +65,18 @@ module Gitlab
]
end
+ def send_artifacts_entry(build, entry)
+ params = {
+ 'Archive' => build.artifacts_file.path,
+ 'Entry' => Base64.encode64(entry.path)
+ }
+
+ [
+ SEND_DATA_HEADER,
+ "artifacts-entry:#{encode(params)}"
+ ]
+ end
+
protected
def encode(hash)