Skip to content
Snippets Groups Projects
Commit 6aefb9e9 authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Remove CI job script validation from legacy config

parent 500b61e1
No related branches found
No related tags found
1 merge request!5087Move CI job config entries from legacy to new config
Pipeline #
Loading
Loading
@@ -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]
Loading
Loading
@@ -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,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment