BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6aefb9e9
Commit
6aefb9e9
authored
Jul 10, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove CI job script validation from legacy config
parent
500b61e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
gitlab_ci_yaml_processor.rb
lib/ci/gitlab_ci_yaml_processor.rb
+0
-15
No files found.
lib/ci/gitlab_ci_yaml_processor.rb
View file @
6aefb9e9
...
...
@@ -110,7 +110,6 @@ module Ci
validate_job_name!
(
name
)
validate_job_keys!
(
name
,
job
)
validate_job_types!
(
name
,
job
)
validate_job_script!
(
name
,
job
)
validate_job_variables!
(
name
,
job
)
if
job
[
:variables
]
validate_job_cache!
(
name
,
job
)
if
job
[
:cache
]
...
...
@@ -166,20 +165,6 @@ module Ci
end
end
def
validate_job_script!
(
name
,
job
)
if
!
validate_string
(
job
[
:script
])
&&
!
validate_array_of_strings
(
job
[
:script
])
raise
ValidationError
,
"
#{
name
}
job: script should be a string or an array of a strings"
end
if
job
[
:before_script
]
&&
!
validate_array_of_strings
(
job
[
:before_script
])
raise
ValidationError
,
"
#{
name
}
job: before_script should be an array of strings"
end
if
job
[
:after_script
]
&&
!
validate_array_of_strings
(
job
[
:after_script
])
raise
ValidationError
,
"
#{
name
}
job: after_script should be an array of strings"
end
end
def
validate_job_variables!
(
name
,
job
)
unless
validate_variables
(
job
[
:variables
])
raise
ValidationError
,
...
...
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