Added a ScmIntegration for Gerrit

A new ScmIntegration has been added for reading entities from
gits hosted by Gerrit. The UrlReader implementation will be done
in an upcoming patch.

The Gerrit configuration supports the following values:

* host (required) : The host of the gerrit instance to use.
* apiBaseUrl (required): The base url of the gerrit api.
* username (optional): The username to use during authentication.
* password (optional): The password or http token to use for
  authentication.

Signed-off-by: Niklas Aronsson <niklasar@axis.com>
This commit is contained in:
Niklas Aronsson
2022-03-07 15:10:27 +01:00
parent 9dc01b0081
commit 403837cbac
12 changed files with 519 additions and 1 deletions
+26
View File
@@ -60,6 +60,32 @@ export interface Config {
appPassword?: string;
}>;
/** Integration configuration for Gerrit */
gerrit?: Array<{
/**
* The hostname of the given Gerrit instance
* @visibility frontend
*/
host: string;
/**
* The base url for the Gerrit API.
* @visibility frontend
*/
apiBaseUrl?: string;
/**
* The username to use for authenticated requests.
* @visibility secret
*/
username?: string;
/**
* Gerrit password used to authenticate requests. This can be either a password
* or a generated access token.
* .
* @visibility secret
*/
password?: string;
}>;
/** Integration configuration for GitHub */
github?: Array<{
/**