summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-18 14:15:01 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-18 15:21:53 +0200
commit24b686ebb64e2f5a02d812e9aa726f1ba0868c2e (patch)
tree1b467db7de06d95bc5a4d19664b4468dd58badf7 /lib/ci
parent47fa9f33ca552e085df2158db41b614a79f3651f (diff)
downloadgitlab-ce-24b686ebb64e2f5a02d812e9aa726f1ba0868c2e.tar.gz
Move job artifacts configuration new CI config code
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 7306fd110bd..ec85cf1bd3d 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -148,26 +148,6 @@ module Ci
raise ValidationError, "#{name} job: artifacts unknown parameter #{key}"
end
end
-
- if job[:artifacts][:name] && !validate_string(job[:artifacts][:name])
- raise ValidationError, "#{name} job: artifacts:name parameter should be a string"
- end
-
- if job[:artifacts][:untracked] && !validate_boolean(job[:artifacts][:untracked])
- raise ValidationError, "#{name} job: artifacts:untracked parameter should be an boolean"
- end
-
- if job[:artifacts][:paths] && !validate_array_of_strings(job[:artifacts][:paths])
- raise ValidationError, "#{name} job: artifacts:paths parameter should be an array of strings"
- end
-
- if job[:artifacts][:when] && !job[:artifacts][:when].in?(%w[on_success on_failure always])
- raise ValidationError, "#{name} job: artifacts:when parameter should be on_success, on_failure or always"
- end
-
- if job[:artifacts][:expire_in] && !validate_duration(job[:artifacts][:expire_in])
- raise ValidationError, "#{name} job: artifacts:expire_in parameter should be a duration"
- end
end
def validate_job_dependencies!(name, job)