diff options
author | Stan Hu <stanhu@gmail.com> | 2019-08-14 00:14:23 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-08-14 00:14:23 +0300 |
commit | e2361565ceb1754bd63c2d98a5c1cfe134e93160 (patch) | |
tree | 4182258751958245b91e0e45701e374ed77aa53a /app/models | |
parent | f7ac41060c4432fa56a554250c72a04a197c3e05 (diff) | |
parent | 6150c3ff0d445c8aea1334b2547a4419be130ff5 (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.rb | 2 |
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 |