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/pipeline/seed/build/cache.rb')
-rw-r--r--lib/gitlab/ci/pipeline/seed/build/cache.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/gitlab/ci/pipeline/seed/build/cache.rb b/lib/gitlab/ci/pipeline/seed/build/cache.rb
index 8d6fe13c3b9..78ffaaa7e81 100644
--- a/lib/gitlab/ci/pipeline/seed/build/cache.rb
+++ b/lib/gitlab/ci/pipeline/seed/build/cache.rb
@@ -18,18 +18,18 @@ module Gitlab
raise ArgumentError, "unknown cache keys: #{local_cache.keys}" if local_cache.any?
end
- def build_attributes
+ def attributes
{
- options: {
- cache: {
- key: key_string,
- paths: @paths,
- policy: @policy,
- untracked: @untracked,
- when: @when
- }.compact.presence
- }.compact
- }
+ key: key_string,
+ paths: @paths,
+ policy: @policy,
+ untracked: @untracked,
+ when: @when
+ }.compact
+ end
+
+ def build_attributes
+ { options: { cache: attributes.presence }.compact }
end
private