Gerrit

Standard connector form, described in general in Connectors, with no fields specific to this type.
| Field | What to enter | Example |
|---|---|---|
| Connector API URL | the Gerrit instance address | https://gerrit.company.com |
| Username | the service account's login | q247-service |
| Personal access token | the HTTP password generated for this account | $$GERRIT_TOKEN |
The login and HTTP password can be entered directly, or through an environment variable on the plugin host, using the notation $$GERRIT_TOKEN. This option is especially useful here, because Gerrit's HTTP password tends to be rotated more often than an API token; the rules are described in Connectors.
In Gerrit, the API credential is generated in the account settings, in the HTTP Credentials section. The account must have read permission for the projects whose repositories are to be analyzed.
See also
- Connectors: the common form, token permissions, statuses
- Running code analysis: what to do after saving the connector