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
6f02da2c
Commit
6f02da2c
authored
Jul 06, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify legacy CI config processor a little
parent
4491bf28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
lib/ci/gitlab_ci_yaml_processor.rb
lib/ci/gitlab_ci_yaml_processor.rb
+4
-9
No files found.
lib/ci/gitlab_ci_yaml_processor.rb
View file @
6f02da2c
...
...
@@ -26,7 +26,6 @@ module Ci
end
initial_parsing
validate!
rescue
Gitlab
::
Ci
::
Config
::
Loader
::
FormatError
=>
e
raise
ValidationError
,
e
.
message
end
...
...
@@ -71,6 +70,10 @@ module Ci
@ci_config
.
jobs
.
each
do
|
name
,
param
|
add_job
(
name
,
param
)
end
@jobs
.
each
do
|
name
,
job
|
validate_job!
(
name
,
job
)
end
end
def
add_job
(
name
,
job
)
...
...
@@ -108,14 +111,6 @@ module Ci
}
end
def
validate!
@jobs
.
each
do
|
name
,
job
|
validate_job!
(
name
,
job
)
end
true
end
def
validate_job!
(
name
,
job
)
validate_job_name!
(
name
)
validate_job_keys!
(
name
,
job
)
...
...
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