Eliminate condition cases in ci/build.rb
This commit is contained in:
parent
6e8ea52be6
commit
c1388df040
1 changed files with 2 additions and 5 deletions
|
@ -192,11 +192,8 @@ module Ci
|
|||
variables += yaml_variables
|
||||
variables += user_variables
|
||||
variables += project.secret_variables_for(ref).map(&:to_runner_variable)
|
||||
if trigger_request
|
||||
variables += trigger_request.user_variables
|
||||
elsif pipeline.pipeline_schedule
|
||||
variables += pipeline.pipeline_schedule.variables.map(&:to_runner_variable)
|
||||
end
|
||||
variables += trigger_request&.user_variables || []
|
||||
variables += pipeline.pipeline_schedule&.variables&.map(&:to_runner_variable) || []
|
||||
variables
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue