Commit 58074195 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Use tag? instead of tag to indicate that this is boolean

parent 7b5ab3de
...@@ -261,7 +261,7 @@ module Ci ...@@ -261,7 +261,7 @@ module Ci
def predefined_variables def predefined_variables
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_NAME, value: name, public: true }
variables << { key: :CI_BUILD_STAGE, value: stage, public: true } variables << { key: :CI_BUILD_STAGE, value: stage, public: true }
variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request variables << { key: :CI_BUILD_TRIGGERED, value: 'true', public: true } if trigger_request
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment