Skip to content
Snippets Groups Projects
Commit 58074195 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

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

parent 7b5ab3de
No related branches found
No related tags found
1 merge request!1572Add a few predefined variables to CI builds
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment