summaryrefslogtreecommitdiff
path: root/lib/api/runner.rb
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-03-06 17:16:33 +0900
committerShinya Maeda <shinya@gitlab.com>2018-03-06 17:16:33 +0900
commit03438886e1de94df6bd89471e67aa6347fd5fb2e (patch)
tree320f64b999c9a97cdcfca33e5a9dd4a88195738d /lib/api/runner.rb
parenta1c612ce2dc2b42137664f73c3a70f3a283bcc0a (diff)
downloadgitlab-ce-03438886e1de94df6bd89471e67aa6347fd5fb2e.tar.gz
Change column to file_sha256. Add test. Add changelog
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r--lib/api/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index 8d2bcc73bb3..7e6c33ec33d 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -204,7 +204,7 @@ module API
optional 'file.path', type: String, desc: %q(path to locally stored body (generated by Workhorse))
optional 'file.name', type: String, desc: %q(real filename as send in Content-Disposition (generated by Workhorse))
optional 'file.type', type: String, desc: %q(real content type as send in Content-Type (generated by Workhorse))
- optional 'file.sha256', type: String, desc: %q(checksum of the file)
+ optional 'file.sha256', type: String, desc: %q(sha256 checksum of the file)
optional 'metadata.path', type: String, desc: %q(path to locally stored body (generated by Workhorse))
optional 'metadata.name', type: String, desc: %q(filename (generated by Workhorse))
end
@@ -225,7 +225,7 @@ module API
expire_in = params['expire_in'] ||
Gitlab::CurrentSettings.current_application_settings.default_artifacts_expire_in
- job.build_job_artifacts_archive(project: job.project, file_type: :archive, file: artifacts, checksum: params['file.sha256'], expire_in: expire_in)
+ job.build_job_artifacts_archive(project: job.project, file_type: :archive, file: artifacts, file_sha256: params['file.sha256'], expire_in: expire_in)
job.build_job_artifacts_metadata(project: job.project, file_type: :metadata, file: metadata, expire_in: expire_in) if metadata
job.artifacts_expire_in = expire_in