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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-11 14:09:46 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-18 14:17:47 +0300
commitb578fbfb8572860490cdfd0163bfbf5f999bb1e6 (patch)
tree0cab0da4537210bb8381be968c663439f5baf96a /app/models/ci/build.rb
parenta1363d39c6fe79d830dbce468c02880d2a5d7996 (diff)
Make it possible to override build variables
Diffstat (limited to 'app/models/ci/build.rb')
-rw-r--r--app/models/ci/build.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb
index 89a9eb76331..61d39caeb79 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -147,7 +147,8 @@ module Ci
end
def variables
- predefined_variables + yaml_variables + project_variables + trigger_variables
+ (predefined_variables + yaml_variables + project_variables + trigger_variables)
+ .reverse.uniq { |var| var[:key] }.reverse
end
def merge_request