Small changes

parent d3974f1e
......@@ -15,7 +15,7 @@ module Ci
@runner = runner
end
def execute(runner_session_params = {})
def execute(params = {})
builds =
if runner.shared?
builds_for_shared_runner
......@@ -44,8 +44,8 @@ module Ci
begin
build.runner_id = runner.id
if runner_session_params[:url].present?
build.build_runner_session.assign_attributes(runner_session_params)
if params.dig(:session, :url).present?
build.build_runner_session(params[:session])
end
build.run!
......
......@@ -104,7 +104,7 @@ module API
end
new_update = current_runner.ensure_runner_queue_value
result = ::Ci::RegisterJobService.new(current_runner).execute(runner_params.fetch(:session, {}))
result = ::Ci::RegisterJobService.new(current_runner).execute(runner_params)
if result.valid?
if result.build
......
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