summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-03-11 13:43:57 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-03-11 13:43:57 +0100
commitd300ecf8d9e886ee7cff9b883bfcdbdb1e49769b (patch)
treeffc2e47ae631adc254be224364933147161a3375 /lib/ci
parentad4d3a075fc338280baaf6240861c9de7aa312ad (diff)
downloadgitlab-ce-d300ecf8d9e886ee7cff9b883bfcdbdb1e49769b.tar.gz
Allow to pass name of created artifacts archive in `.gitlab-ci.yml`
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/gitlab_ci_yaml_processor.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb
index 8ece73eec0e..ce3d0138268 100644
--- a/lib/ci/gitlab_ci_yaml_processor.rb
+++ b/lib/ci/gitlab_ci_yaml_processor.rb
@@ -218,6 +218,10 @@ module Ci
end
def validate_job_artifacts!(name, job)
+ 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