Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
76030d29
Commit
76030d29
authored
Apr 08, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
cefff013
2fa3b984
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
app/models/instance_configuration.rb
app/models/instance_configuration.rb
+1
-1
changelogs/unreleased/instance-configuration-artifact-size.yml
...elogs/unreleased/instance-configuration-artifact-size.yml
+5
-0
spec/models/instance_configuration_spec.rb
spec/models/instance_configuration_spec.rb
+7
-0
No files found.
app/models/instance_configuration.rb
View file @
76030d29
...
...
@@ -39,7 +39,7 @@ class InstanceConfiguration
def
gitlab_ci
Settings
.
gitlab_ci
.
to_h
.
merge
(
artifacts_max_size:
{
value:
Settings
.
artifacts
.
max_size
&
.
megabytes
,
.
merge
(
artifacts_max_size:
{
value:
Gitlab
::
CurrentSettings
.
max_artifacts_size
.
megabytes
,
default:
100
.
megabytes
})
end
...
...
changelogs/unreleased/instance-configuration-artifact-size.yml
0 → 100644
View file @
76030d29
---
title
:
Display maximum artifact size from runtime config
merge_request
:
26784
author
:
Bastian Blank
type
:
fixed
spec/models/instance_configuration_spec.rb
View file @
76030d29
...
...
@@ -82,6 +82,13 @@ describe InstanceConfiguration do
it
'returns the key artifacts_max_size'
do
expect
(
gitlab_ci
.
keys
).
to
include
(
:artifacts_max_size
)
end
it
'returns the key artifacts_max_size with values'
do
stub_application_setting
(
max_artifacts_size:
200
)
expect
(
gitlab_ci
[
:artifacts_max_size
][
:default
]).
to
eq
(
100
.
megabytes
)
expect
(
gitlab_ci
[
:artifacts_max_size
][
:value
]).
to
eq
(
200
.
megabytes
)
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment