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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
d3762c22
Commit
d3762c22
authored
Sep 28, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement pipeline seeds size methods
parent
1ca4f282
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+4
-0
lib/gitlab/ci/stage/seed.rb
lib/gitlab/ci/stage/seed.rb
+2
-0
No files found.
app/models/ci/pipeline.rb
View file @
d3762c22
...
...
@@ -312,6 +312,10 @@ module Ci
@stage_seeds
||=
config_processor
.
stage_seeds
(
self
)
end
def
seeds_size
@seeds_size
||=
stage_seeds
.
sum
(
&
:size
)
end
def
has_kubernetes_active?
project
.
kubernetes_service
&
.
active?
end
...
...
lib/gitlab/ci/stage/seed.rb
View file @
d3762c22
...
...
@@ -3,7 +3,9 @@ module Gitlab
module
Stage
class
Seed
attr_reader
:pipeline
delegate
:project
,
to: :pipeline
delegate
:size
,
to: :@jobs
def
initialize
(
pipeline
,
stage
,
jobs
)
@pipeline
=
pipeline
...
...
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