diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-10 15:43:01 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-10 15:43:01 +0300 |
commit | 6aefb9e99983494b129a011ee0fce57c1398f612 (patch) | |
tree | 04150b38c7736d7248f8a79cbdbca2f618dc7b84 /lib | |
parent | 500b61e14f384eec545c207fa9324906daf2e148 (diff) |
Remove CI job script validation from legacy config
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index 40d1b475013..ed8dd0f9e47 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -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, |