Inline initialize_yaml_processor
This commit is contained in:
parent
7600a6469b
commit
e358ae16b4
|
@ -464,7 +464,7 @@ module Ci
|
|||
return @config_processor if defined?(@config_processor)
|
||||
|
||||
@config_processor ||= begin
|
||||
initialize_yaml_processor
|
||||
::Gitlab::Ci::YamlProcessor.new(ci_yaml_file, { project: project, sha: sha })
|
||||
rescue Gitlab::Ci::YamlProcessor::ValidationError => e
|
||||
self.yaml_errors = e.message
|
||||
nil
|
||||
|
@ -474,10 +474,6 @@ module Ci
|
|||
end
|
||||
end
|
||||
|
||||
def initialize_yaml_processor
|
||||
::Gitlab::Ci::YamlProcessor.new(ci_yaml_file, { project: project, sha: sha })
|
||||
end
|
||||
|
||||
def ci_yaml_file_path
|
||||
if project.ci_config_path.blank?
|
||||
'.gitlab-ci.yml'
|
||||
|
|
Loading…
Reference in New Issue