diff options
author | Robert Speicher <robert@gitlab.com> | 2015-11-23 22:19:13 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-11-23 22:19:13 +0000 |
commit | 31a34b591731eb8997da4844287d7c31e3686454 (patch) | |
tree | 9873ab0e39c86172efed56a6e99a19330578d640 /lib | |
parent | 2d77a21d5930ae3ed1a7e00c6c242569de2d55e5 (diff) | |
parent | 11728b50f96a296c760d9e69273d304f92e51f8f (diff) | |
download | gitlab-ce-31a34b591731eb8997da4844287d7c31e3686454.tar.gz |
Merge branch 'ci-artifacts-path' into 'master'
Expose artifacts path
This fixes broken artifacts storage path.
Fixes #3607
Fixes #3608
Related: gitlab-org/omnibus-gitlab!544
See merge request !1869
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/api/builds.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/current_settings.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb index 0a586672807..15faa6edd84 100644 --- a/lib/ci/api/builds.rb +++ b/lib/ci/api/builds.rb @@ -58,6 +58,7 @@ module Ci # POST /builds/:id/artifacts/authorize post ":id/artifacts/authorize" do require_gitlab_workhorse! + not_allowed! unless Gitlab.config.artifacts.enabled build = Ci::Build.find_by_id(params[:id]) not_found! unless build authenticate_build_token!(build) @@ -91,6 +92,7 @@ module Ci # POST /builds/:id/artifacts post ":id/artifacts" do require_gitlab_workhorse! + not_allowed! unless Gitlab.config.artifacts.enabled build = Ci::Build.find_by_id(params[:id]) not_found! unless build authenticate_build_token!(build) diff --git a/lib/gitlab/current_settings.rb b/lib/gitlab/current_settings.rb index 2d3e32d9539..46a4ef0e31f 100644 --- a/lib/gitlab/current_settings.rb +++ b/lib/gitlab/current_settings.rb @@ -25,7 +25,7 @@ module Gitlab session_expire_delay: Settings.gitlab['session_expire_delay'], import_sources: Settings.gitlab['import_sources'], shared_runners_enabled: Settings.gitlab_ci['shared_runners_enabled'], - max_artifacts_size: Ci::Settings.gitlab_ci['max_artifacts_size'], + max_artifacts_size: Settings.artifacts['max_size'], ) end |