Skip to content
Snippets Groups Projects

Support for release key in gitlab-ci.yaml

Merged Sean Carroll requested to merge 26013-release-generation-from-within-gitlab-ci-yml-2 into master
All threads resolved!
7 files
+ 267
2
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 36
0
# frozen_string_literal: true
module Gitlab
module Ci
class Config
module Entry
##
# Entry that represents a configuration of job artifacts.
#
class Assets < ::Gitlab::Config::Entry::Node
include ::Gitlab::Config::Entry::Validatable
include ::Gitlab::Config::Entry::Attributable
ALLOWED_KEYS = %i[name url path].freeze
attributes ALLOWED_KEYS
validations do
validates :config, type: Hash
validates :config, allowed_keys: ALLOWED_KEYS
validates :name, type: String
with_options allow_nil: true do
validates :url, type: String, length: { maximum: 255 }
validates :path, type: String
end
end
def value
@config.transform_values { |v| Array(v) }
end
end
end
end
end
end
Loading