Class: Gitlab::Ci::Pipeline::Chain::Config::Content
- Inherits:
-
Base
- Object
- Base
- Gitlab::Ci::Pipeline::Chain::Config::Content
show all
- Includes:
- Helpers, Utils::StrongMemoize
- Defined in:
- lib/gitlab/ci/pipeline/chain/config/content.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
23
24
25
|
# File 'lib/gitlab/ci/pipeline/chain/config/content.rb', line 23
def break?
@pipeline.errors.any? || @pipeline.persisted?
end
|
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/gitlab/ci/pipeline/chain/config/content.rb', line 12
def perform!
if pipeline_config&.exists?
@pipeline.build_pipeline_config(content: pipeline_config.content, project_id: @pipeline.project_id)
@command.config_content = pipeline_config.content
@pipeline.config_source = pipeline_config.source
@command.pipeline_config = pipeline_config
else
error('Missing CI config file')
end
end
|