@backstage-community/plugin-sonarqube
Version:
59 lines (53 loc) • 1.66 kB
TypeScript
/*
* Copyright 2020 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface Config {
/** Optional configurations for the SonarQube plugin */
sonarqube?: {
/**
* The base url of the sonarqube installation. Defaults to https://sonarcloud.io.
* @visibility frontend
*/
baseUrl?: string;
/**
* The external url of the sonarqube installation.
* Use this if you want to use a different url for the frontend than the backend.
* @visibility frontend
*/
externalBaseUrl?: string;
/**
* The optional sonarqube instances.
* @visibility frontend
*/
instances?: Array<{
/**
* The name of the sonarqube instance.
* @visibility frontend
*/
name: string;
/**
* The base url of the sonarqube instance.
* @visibility frontend
*/
baseUrl: string;
/**
* The external url of the sonarqube instance.
* Use this if you want to use a different url for the frontend than the backend.
* @visibility frontend
*/
externalBaseUrl?: string;
}>;
};
}