Skip to main content

Gerrit

Gerrit connector form

Standard connector form, described in general in Connectors, with no fields specific to this type.

FieldWhat to enterExample
Connector API URLthe Gerrit instance addresshttps://gerrit.company.com
Usernamethe service account's loginq247-service
Personal access tokenthe 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