Commit 0ce5cc99 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Resolve merge

parent aca1e14b
...@@ -120,17 +120,6 @@ module Ci ...@@ -120,17 +120,6 @@ module Ci
true true
end end
def validate_job!(name, job)
validate_job_name!(name)
validate_job_keys!(name, job)
validate_job_types!(name, job)
validate_job_stage!(name, job) if job[:stage]
validate_job_cache!(name, job) if job[:cache]
validate_job_artifacts!(name, job) if job[:artifacts]
validate_job_dependencies!(name, job) if job[:dependencies]
end
private private
def validate_global! def validate_global!
...@@ -170,12 +159,9 @@ module Ci ...@@ -170,12 +159,9 @@ module Ci
raise ValidationError, "cache:untracked parameter should be an boolean" raise ValidationError, "cache:untracked parameter should be an boolean"
end end
<<<<<<< HEAD
if @cache[:paths] && !validate_array_of_strings(@cache[:paths]) if @cache[:paths] && !validate_array_of_strings(@cache[:paths])
raise ValidationError, "cache:paths parameter should be an array of strings" raise ValidationError, "cache:paths parameter should be an array of strings"
end end
=======
true
end end
def validate_job!(name, job) def validate_job!(name, job)
...@@ -188,7 +174,6 @@ module Ci ...@@ -188,7 +174,6 @@ module Ci
validate_job_cache!(name, job) if job[:cache] validate_job_cache!(name, job) if job[:cache]
validate_job_artifacts!(name, job) if job[:artifacts] validate_job_artifacts!(name, job) if job[:artifacts]
validate_job_dependencies!(name, job) if job[:dependencies] validate_job_dependencies!(name, job) if job[:dependencies]
>>>>>>> origin/master
end end
def validate_job_name!(name) def validate_job_name!(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment