diff options
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/pipeline.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index f3a40204305..27e0ade2722 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -464,7 +464,7 @@ module Ci return @config_processor if defined?(@config_processor) @config_processor ||= begin - Gitlab::Ci::YamlProcessor.new(ci_yaml_file, project) + initialize_yaml_processor rescue Gitlab::Ci::YamlProcessor::ValidationError => e self.yaml_errors = e.message nil @@ -474,6 +474,10 @@ module Ci end end + def initialize_yaml_processor + Gitlab::Ci::YamlProcessor.new(ci_yaml_file, { project: project, branch_name: ref }) + end + def ci_yaml_file_path if project.ci_config_path.blank? '.gitlab-ci.yml' |