add-to-queue - Add a repository to the GC queue
ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ add-to-queue <REPOSITORY> [--first]
Add a repository to the GC queue.
An absolute path to the repository (including the .git suffix) or the project name are accepted. A symlink pointing to a repository is also admitted.
Adding a repository to the GC queue is an idempotent operation, i.e., executing the command multiple times only add the repository to the queue once.
Any user who has configured an SSH key and has been granted the Administrate Server
global capability.
This command is intended to be used in a script.
--first
: Add repository as first priority in GC queue.
Absolute path to a repository:
$ ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ add-to-queue /repos/my/repo.git
Symlink pointing to a repository:
$ ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ add-to-queue /opt/gerrit/repos/my/repo.git
Name of the project:
$ ssh -p @SSH_PORT@ @SSH_HOST@ @PLUGIN@ add-to-queue my/repo
Part of Gerrit Code Review