Skip to content

Instantly share code, notes, and snippets.

@jbutko
Last active January 10, 2023 10:32
Show Gist options
  • Save jbutko/dfcd4e8cbc14fa554d6fe5a9b6d3d8a6 to your computer and use it in GitHub Desktop.
Save jbutko/dfcd4e8cbc14fa554d6fe5a9b6d3d8a6 to your computer and use it in GitHub Desktop.
How to unregister and register gitlab-runner on ubuntu

Unregister runnning runner

UI way:

  1. Delete runner from UI dashboard:
  1. run sudo gitlab-runner verify --delete command, dead runners will be deleted

Bash way:

  1. SSH to your server
  2. If you need to unregister: sudo gitlab-runner unregister --url https://gitlab.com/ --token some-token-goes-here
  3. Register new runner: sudo gitlab-runner register --url https://gitlab.com/ --registration-token some-token-goes-here

Untagged jobs issue

If jobs are stucked you need to enable runner to pick up untagged jobs - it's in Settings -> CI/CD -> Edit runner -> "Run untagged jobs"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment