Class: Gitlab::Ci::Pipeline::Chain::AssignPartition
- Inherits:
-
Base
- Object
- Base
- Gitlab::Ci::Pipeline::Chain::AssignPartition
show all
- Includes:
- Helpers
- Defined in:
- lib/gitlab/ci/pipeline/chain/assign_partition.rb
Instance Attribute Summary
Attributes inherited from Base
#command, #config, #pipeline
Instance Method Summary
collapse
Methods included from Helpers
#error, #warning
Methods inherited from Base
#initialize
Instance Method Details
#break? ⇒ Boolean
14
15
16
|
# File 'lib/gitlab/ci/pipeline/chain/assign_partition.rb', line 14
def break?
@pipeline.errors.any?
end
|
10
11
12
|
# File 'lib/gitlab/ci/pipeline/chain/assign_partition.rb', line 10
def perform!
@pipeline.partition_id = find_partition_id
end
|