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:
authorStan Hu <stanhu@gmail.com>2019-08-14 00:14:23 +0300
committerStan Hu <stanhu@gmail.com>2019-08-14 00:14:23 +0300
commite2361565ceb1754bd63c2d98a5c1cfe134e93160 (patch)
tree4182258751958245b91e0e45701e374ed77aa53a /app/models
parentf7ac41060c4432fa56a554250c72a04a197c3e05 (diff)
parent6150c3ff0d445c8aea1334b2547a4419be130ff5 (diff)
Merge branch 'expand-variables-only-when-needed' into 'master'
Expand variables only when needed See merge request gitlab-org/gitlab-ce!31772
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index ac88d9714ac..f705e67121f 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -384,7 +384,7 @@ module Ci
return unless has_environment?
strong_memoize(:expanded_environment_name) do
- ExpandVariables.expand(environment, simple_variables)
+ ExpandVariables.expand(environment, -> { simple_variables })
end
end