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
da47ce00
Commit
da47ce00
authored
Mar 22, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert changes in pipeline quota size
parent
0ba6841b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ee/lib/ee/gitlab/ci/pipeline/quota/size.rb
ee/lib/ee/gitlab/ci/pipeline/quota/size.rb
+4
-5
No files found.
ee/lib/ee/gitlab/ci/pipeline/quota/size.rb
View file @
da47ce00
...
...
@@ -18,21 +18,20 @@ module EE
def
exceeded?
return
false
unless
enabled?
excessive_
pipeline_size
>
0
excessive_
seeds_count
>
0
end
def
message
return
unless
exceeded?
'Pipeline size limit exceeded by '
\
"
#{
pluralize
(
excessive_
pipeline_size
,
'job'
)
}
!"
"
#{
pluralize
(
excessive_
seeds_count
,
'job'
)
}
!"
end
private
def
excessive_pipeline_size
TODO
fix
size
quota
@excessive
||=
@pipeline
.
builds
.
size
-
@namespace
.
max_pipeline_size
def
excessive_seeds_count
@excessive
||=
@pipeline
.
seeds_size
-
@namespace
.
max_pipeline_size
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