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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
d0784fb3
Commit
d0784fb3
authored
Sep 12, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Inline initialize_yaml_processor
parent
0a668b43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+1
-5
No files found.
app/models/ci/pipeline.rb
View file @
d0784fb3
...
...
@@ -477,7 +477,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
...
...
@@ -487,10 +487,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'
...
...
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