summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-13 17:00:55 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-14 17:28:17 +0200
commit58074195198e715045dc5280aed9515297fe7ad3 (patch)
treeebcc62721de08360f188f902261c65829181407e
parent7b5ab3ded5e6f5d88f04802d5a71a9ae94d20f92 (diff)
downloadgitlab-ce-predefined_build_variables.tar.gz
Use tag? instead of tag to indicate that this is booleanpredefined_build_variables
-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 481440e869f..23aed6d9952 100644
--- a/app/models/ci/build.rb
+++ b/app/models/ci/build.rb
@@ -261,7 +261,7 @@ module Ci
def predefined_variables
variables = []
- variables << { key: :CI_BUILD_TAG, value: ref, public: true } if tag
+ variables << { key: :CI_BUILD_TAG, value: ref, public: true } if tag?
variables << { key: :CI_BUILD_NAME, value: name, public: true }
variables << { key: :CI_BUILD_STAGE, value: stage, public: true }
variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request