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
0
Merge Requests
0
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
Jérome Perrin
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
Show 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
...
@@ -26,7 +26,6 @@ module Ci
end
end
initial_parsing
initial_parsing
validate!
rescue
Gitlab
::
Ci
::
Config
::
Loader
::
FormatError
=>
e
rescue
Gitlab
::
Ci
::
Config
::
Loader
::
FormatError
=>
e
raise
ValidationError
,
e
.
message
raise
ValidationError
,
e
.
message
end
end
...
@@ -71,6 +70,10 @@ module Ci
...
@@ -71,6 +70,10 @@ module Ci
@ci_config
.
jobs
.
each
do
|
name
,
param
|
@ci_config
.
jobs
.
each
do
|
name
,
param
|
add_job
(
name
,
param
)
add_job
(
name
,
param
)
end
end
@jobs
.
each
do
|
name
,
job
|
validate_job!
(
name
,
job
)
end
end
end
def
add_job
(
name
,
job
)
def
add_job
(
name
,
job
)
...
@@ -108,14 +111,6 @@ module Ci
...
@@ -108,14 +111,6 @@ module Ci
}
}
end
end
def
validate!
@jobs
.
each
do
|
name
,
job
|
validate_job!
(
name
,
job
)
end
true
end
def
validate_job!
(
name
,
job
)
def
validate_job!
(
name
,
job
)
validate_job_name!
(
name
)
validate_job_name!
(
name
)
validate_job_keys!
(
name
,
job
)
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