Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-18 17:33:20 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-18 17:33:20 +0300
commit943ae747eac04e19c2614a5b48f41387c6d150d3 (patch)
tree1beaacc39fd980ae6994c4fd38bc9c71429f1dff /lib/ci/gitlab_ci_yaml_processor.rb
parent6d466733a2ab90f2a4d9904e7bfe1ef887568210 (diff)
Move tags and allow_failure CI entries to new config
Diffstat (limited to 'lib/ci/gitlab_ci_yaml_processor.rb')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 5c54489ab3f..3b6fcd909f4 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -99,14 +99,6 @@ module Ci
end
def validate_job_types!(name, job)
- if job[:tags] && !validate_array_of_strings(job[:tags])
- raise ValidationError, "#{name} job: tags parameter should be an array of strings"
- end
-
- if job[:allow_failure] && !validate_boolean(job[:allow_failure])
- raise ValidationError, "#{name} job: allow_failure parameter should be an boolean"
- end
-
if job[:when] && !job[:when].in?(%w[on_success on_failure always])
raise ValidationError, "#{name} job: when parameter should be on_success, on_failure or always"
end