Skip to content
Snippets Groups Projects
Commit c1388df0 authored by Shinya Maeda's avatar Shinya Maeda :two:
Browse files

Eliminate condition cases in ci/build.rb

parent 6e8ea52b
No related branches found
No related tags found
Loading
......@@ -192,11 +192,8 @@ def simple_variables
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment