From 93b0f3623008d8c166f172fb0c20f547000abeea Mon Sep 17 00:00:00 2001 From: Gil <gil.b@sygnia.co> Date: Tue, 21 Dec 2021 03:47:28 +0000 Subject: [PATCH] Added to cheatsheet commands to update the runners registration token Update gitlab_rails_cheat_sheet.md --- .../troubleshooting/gitlab_rails_cheat_sheet.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md b/doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md index ccfa93d9bc830..3b1103b8f8900 100644 --- a/doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md +++ b/doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md @@ -909,6 +909,14 @@ end Gitlab::CurrentSettings.current_application_settings.runners_registration_token ``` +### Seed runners registration token + +```ruby +appSetting = Gitlab::CurrentSettings.current_application_settings +appSetting.set_runners_registration_token('<new-runners-registration-token>') +appSetting.save! +``` + ### Run pipeline schedules manually You can run pipeline schedules manually through the Rails console to reveal any errors that are usually not visible. -- GitLab