Commit 59112f8d authored by DJ Mountney's avatar DJ Mountney

Try and fix the failing eks spec tests

Make sure the runner set token command is grabbing a fresh version of
the migrated application settings from the database.
parent 3cb615be
Pipeline #56606988 passed with stages
in 57 minutes and 13 seconds
......@@ -106,7 +106,7 @@ module Gitlab
def set_runner_token
rails_dir = ENV['RAILS_DIR'] || '/srv/gitlab'
cmd = full_command("#{rails_dir}/bin/rails runner \"settings = ApplicationSetting.current; settings.set_runners_registration_token('#{runner_registration_token}'); settings.save!; ApplicationSetting.expire \"")
cmd = full_command("#{rails_dir}/bin/rails runner \"settings = ApplicationSetting.current_without_cache; settings.set_runners_registration_token('#{runner_registration_token}'); settings.save!; ApplicationSetting.expire \"")
stdout, status = Open3.capture2e(cmd)
return [stdout, status]
......
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