diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-13 17:00:55 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-14 17:28:17 +0200 |
commit | 58074195198e715045dc5280aed9515297fe7ad3 (patch) | |
tree | ebcc62721de08360f188f902261c65829181407e | |
parent | 7b5ab3ded5e6f5d88f04802d5a71a9ae94d20f92 (diff) | |
download | gitlab-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.rb | 2 |
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 |