Skip to content
Snippets Groups Projects
Commit 86944cb9 authored by GitLab Bot's avatar GitLab Bot
Browse files

Add latest changes from gitlab-org/gitlab@master

parent d5e16807
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -137,6 +137,7 @@ The following job parameters can be defined inside a `default:` block:
- [`after_script`](#before_script-and-after_script)
- [`tags`](#tags)
- [`cache`](#cache)
- [`artifacts`](#artifacts)
- [`retry`](#retry)
- [`timeout`](#timeout)
- [`interruptible`](#interruptible)
Loading
Loading
Loading
Loading
@@ -15,7 +15,7 @@ module Gitlab
 
ALLOWED_KEYS = %i[before_script image services
after_script cache interruptible
timeout retry tags].freeze
timeout retry tags artifacts].freeze
 
validations do
validates :config, allowed_keys: ALLOWED_KEYS
Loading
Loading
@@ -57,8 +57,11 @@ module Gitlab
description: 'Set the default tags.',
inherit: false
 
helpers :before_script, :image, :services, :after_script, :cache, :interruptible,
:timeout, :retry, :tags
entry :artifacts, Entry::Artifacts,
description: 'Default artifacts.',
inherit: false
helpers :before_script, :image, :services, :after_script, :cache
 
private
 
Loading
Loading
Loading
Loading
@@ -114,6 +114,10 @@ module Gitlab
description: 'Set the tags.',
inherit: true
 
entry :artifacts, Entry::Artifacts,
description: 'Artifacts configuration for this job.',
inherit: true
entry :only, Entry::Policy,
description: 'Refs policy this job will be executed for.',
default: Entry::Policy::DEFAULT_ONLY,
Loading
Loading
@@ -139,10 +143,6 @@ module Gitlab
description: 'Environment variables available for this job.',
inherit: false
 
entry :artifacts, Entry::Artifacts,
description: 'Artifacts configuration for this job.',
inherit: false
entry :environment, Entry::Environment,
description: 'Environment configuration for this job.',
inherit: false
Loading
Loading
Loading
Loading
@@ -27,7 +27,7 @@ describe Gitlab::Ci::Config::Entry::Default do
expect(described_class.nodes.keys)
.to match_array(%i[before_script image services
after_script cache interruptible
timeout retry tags])
timeout retry tags artifacts])
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment