Remove if pipeline.variables in Ci::Build#variables

This commit is contained in:
Shinya Maeda 2017-07-27 22:41:21 +09:00
parent 48389e9944
commit b3b8b595a1

View file

@ -219,7 +219,7 @@ module Ci
variables += project.group.secret_variables_for(ref, project).map(&:to_runner_variable) if project.group
variables += secret_variables(environment: environment)
variables += trigger_request.user_variables if trigger_request
variables += pipeline.variables.map(&:to_runner_variable) if pipeline.variables
variables += pipeline.variables.map(&:to_runner_variable)
variables += pipeline.pipeline_schedule.job_variables if pipeline.pipeline_schedule
variables += persisted_environment_variables if environment