diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-11 15:43:57 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-03-11 15:43:57 +0300 |
commit | d300ecf8d9e886ee7cff9b883bfcdbdb1e49769b (patch) | |
tree | ffc2e47ae631adc254be224364933147161a3375 /lib | |
parent | ad4d3a075fc338280baaf6240861c9de7aa312ad (diff) |
Allow to pass name of created artifacts archive in `.gitlab-ci.yml`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 4 |
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 |