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:
Diffstat (limited to 'lib/gitlab/ci/config/node/artifacts.rb')
-rw-r--r--lib/gitlab/ci/config/node/artifacts.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/gitlab/ci/config/node/artifacts.rb b/lib/gitlab/ci/config/node/artifacts.rb
deleted file mode 100644
index 844bd2fe998..00000000000
--- a/lib/gitlab/ci/config/node/artifacts.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module Gitlab
- module Ci
- class Config
- module Node
- ##
- # Entry that represents a configuration of job artifacts.
- #
- class Artifacts < Entry
- include Validatable
- include Attributable
-
- ALLOWED_KEYS = %i[name untracked paths when expire_in]
-
- attributes ALLOWED_KEYS
-
- validations do
- validates :config, type: Hash
- validates :config, allowed_keys: ALLOWED_KEYS
-
- with_options allow_nil: true do
- validates :name, type: String
- validates :untracked, boolean: true
- validates :paths, array_of_strings: true
- validates :when,
- inclusion: { in: %w[on_success on_failure always],
- message: 'should be on_success, on_failure ' \
- 'or always' }
- validates :expire_in, duration: true
- end
- end
- end
- end
- end
- end
-end