From 2a7f555caf8588ad78f054f29e740a2a4a30deb3 Mon Sep 17 00:00:00 2001 From: Tomasz Maczukin Date: Tue, 28 Feb 2017 14:27:25 +0100 Subject: Add artifacts uploading authorize API --- lib/api/helpers/runner.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/api/helpers') diff --git a/lib/api/helpers/runner.rb b/lib/api/helpers/runner.rb index e71895c091e..97255cc8c81 100644 --- a/lib/api/helpers/runner.rb +++ b/lib/api/helpers/runner.rb @@ -68,6 +68,10 @@ module API token = (params[JOB_TOKEN_PARAM] || env[JOB_TOKEN_HEADER]).to_s token && job.valid_token?(token) end + + def max_artifacts_size + current_application_settings.max_artifacts_size.megabytes.to_i + end end end end -- cgit v1.2.1