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:
Vendored
+26
@@ -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<{
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user